Introduction fo Byte-Oriented File Input/Output Routines Byte-Oriented Input and Output File Open Byte-Oriented Input and Output File Close Byte-Oriented Input and Output Error Return Codes :Byte-Oriented File Input/Output Routines Thå  followinç  documentatioî  coveró thå  serieó  oæ  byte-� orienteä  filå input/outpuô routineó iî SYSLIB®  Theså  routineó � allo÷ thå useò tï sequentiallù reaä froí (GET© anä writå tï (PUT© � á filå oî á byte-for-bytå basis®  Hence¬  theså routineó providå � aî exceptionallù simplå methoä foò handlinç inpuô froí anä outpuô � tï á file. Á typicaì prograí whicè employó theså routineó musô opeî thå � requireä fileó beforå doinç anù processing¬ musô theî perforí thå � processinç  oî thå openeä files¬  anä musô theî closå  thå  fileó � wheî  thå  processinç ió completå (closinç thå fileó ió  optionaì � foò inpuô fileó anä mandatorù foò outpuô files). SYSLIÂ provideó fouò setó oæ routineó foò byte-orienteä filå � inpuô anä output® Theså routineó arå -- Input Open Output Open GET PUT Input Close Output Close ---------- ----------- --- --­ ----------- ------------ FI0$OPEN FO0$OPEN F0$GET F0$PUT FI0$CLOSE FO0$CLOSE FI1$OPEN FO1$OPEN F1$GET F1$PUT FI1$CLOSE FO1$CLOSE FI2$OPEN FO2$OPEN F2$GET F2$PUT FI2$CLOSE FO2$CLOSE FI3$OPEN FO3$OPEN F3$GET F3$PUT FI3$CLOSE FO3$CLOSE Thió  systeí  allowó  thå useò tï havå uð tï  ¸  fileó  opeî � simultaneouslù -- fouò arå opeî foò inpuô usinç GEÔ anä fouò  arå � opeî  foò  outpuô usinç PUT®  Foò example¬  thå followinç  ió  á � samplå codå sectioî usinç theså routineó foò twï files: EXT FI0$OPEN ; DECLARE LIBRARY REFERENCES EXT FO0$OPEN EXT FI0$CLOSE EXT FO0$CLOSE EXT F0$GET EXT F0$PUT ... LXI D,FCBI ; PT TO FCB OF INPUT FILE CALL FI0$OPEN LXI D,FCBO ; PT TO FCB OF OUTPUT FILE CALL FO0$OPEN ... [body containing CALL F0$GET and CALL F0$PUT where required] ... CALL FI0$CLOSE ; CLOSE FILE CALL FO0$CLOSE ... END Notå thaô onlù thå routineó tï bå useä arå referenceä iî thå � EXÔ statements®  Iæ yoõ dï noô neeä á particulaò routine¬ dï noô � referencå  it®  Noô  referencinç aî unneedeä  routinå  generallù � saveó thå overheaä memorù spacå oæ loadinç iô froí thå library. Eacè seô oæ INPUÔ OPEN¬  INPUÔ CLOSE¬  OUTPUÔ  OPEN¬  OUTPUÔ � CLOSE¬  GET¬ anä PUÔ routineó ió containeä iî onå librarù module¬ � sï  referencinç anù oæ theså routineó causeó thå entirå modulå tï � bå  loaded¬  anä  alì  thå routineó arå accessablå  tï  thå  useò � (provideä theù arå mentioneä iî thå externaì definitions© withouô � anù   additionaì  memorù   overhead®   Specifically¬   FI0$OPEN¬ � FI0$CLOSE¬  FO0$OPEN¬ FO0$CLOSE¬ F0$GET¬ anä F0$PUÔ arå containeä � iî onå module¬  anä referencå tï anù oæ theså routineó loadó  thå � entirå module» thå samå ió truå foò thå otheò setó oæ routines. Thå CLOSÅ routinå foò outpuô (FOn$CLOSE© ió ALWAYÓ required» � iô  filló  thå resô oæ thå currenô blocë witè Ctrl-Ú followeä  bù �