h6. [[OS SWI Calls]] h6(. » OS_File h2. OS_File h5. (SWI &08) |_<^{width:3em}. Entry | | |<^. R0 |<^. Reason code | |\2<^. Other registers dependent of reason code | |_<^{width:3em}. Exit | | |<^. R0 |<^. Preserved | |\2<^. Other registers dependent of reason code | h4. Use The purpose of this call is to perform operations on whole files. h4. Reason Codes |_<^{width:3em}. # |_<^. Action| |<^. 0|<^. [[OS_File 0|Save block of memory as a file]]| |<^. 1|<^. [[OS_File 1|Write catalogue info for named object]]| |<^. 2|<^. [[OS_File 2|Write load address for named object]]| |<^. 3|<^. [[OS_File 3|Write exec address for named object]]| |<^. 4|<^. [[OS_File 4|Write attributes for named object]]| |<^. 5|<^. [[OS_File 5|Read catalogue info for object]]| |<^. 6|<^. [[OS_File 6|Delete named object]]| |<^. 7|<^. [[OS_File 7|Create empty un-stamped file]]| |<^. 8|<^. [[OS_File 8|Create directory]]| |<^. 9|<^. [[OS_File 9|Date stamp named object]]| |<^. 10|<^. [[OS_File 10|Save block of memory as a typed file]]| |<^. 11|<^. [[OS_File 11|Create empty file]]| |<^. 12|<^. [[OS_File 12|Load named file given path]]| |<^. 13|<^. [[OS_File 13|Read catalogue info for object given path]]| |<^. 14|<^. [[OS_File 14|Load named file given path variable]]| |<^. 15|<^. [[OS_File 15|Read catalogue info for object given path variable]]| |<^. 16|<^. [[OS_File 16|Load named file without path]]| |<^. 17|<^. [[OS_File 17|Read catalogue info for object without path]]| |<^. 18|<^. [[OS_File 18|Set type of named object]]| |<^. 19|<^. [[OS_File 19|Generate error message]]| |<^. 20|<^. [[OS_File 20|Read catalogue info for stamped object]]| |<^. 21|<^. [[OS_File 21|Read catalogue info for stamped object given path]]| |<^. 22|<^. [[OS_File 22|Read catalogue info for stamped object given path variable]]| |<^. 23|<^. [[OS_File 23|Read catalogue info for stamped object without path]]| |<^. 24|<^. [[OS_File 24|Read block size of file]]| |<^. 255|<^. [[OS_File 255|Load named file]]| h4. See also h5. Other languages documentation [[OS_File (français)|Français]]