
Words, their contents are not strictly defined by the operating system.Īt some point in it's history it was decided that OS/400 should be extended to work Pictures, sounds, video files, or anything else that a programmer can dream up. Write and read these bytes as data files, but they can also view them as programs, Systems where each object is simply a collection of bytes. Each object type has a strictly defined layout.įiles, for example, contain members, which then contain records, which contain fields.Įach of these pieces is given a strict definition of what it is, how it works, and how itīy contrast, other operating systems, such as UNIX, MS-DOS and Windows use file Within each library are objects that are assigned a specific "object type" Traditionally, we've worked with a file system on OS/400 that was made up of Example of Reading a directory recursively

Example of making a DIR command for QSHELL 7.10. Example of writing & creating an ASCII textįile 5.7. Example of writing and reading text files 5.5. Reading text data from a stream file 5.4. Example of reading/writing/updating records in a streamįile 5. Calculating number of records in a file 4.5. Organizing a stream file into records 4.4. Example of using lseek() to jump around the file 4.3. Positioning to a given point in the file 4.2. Example of renaming and deleting IFS objects 4. Adding a *SAME option to the permission changer 3.7.

Example of changing an IFS objects permissions 3.5. Changing permissions on an existing IFS Object 3.4. Example of checking for an object in the IFS 3.3. Checking existence and permissions to files 3.2. Other simple, but helpful IFS commands 3.1. Example of writing raw data to a stream file 3. Our last example with error handling added 2.8. Getting a human-readable error message 2.6.4. Example of writing and reading data to a stream file 2.6. Reading a stream file with the read() API 2.5. Writing streams with the write() API 2.4. Code snippet showing the use of the open() API 2.2. The return value of the open() API 2.1.8.

IFS information in the Information Center 1.5. What different file systems can I work with in
