Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

OSBReadOSBWriteOSCloseOSDeleteOSOpenOSWrite

Example

Code Block
/* read a file into a variable, append data and write the data back to file */
 
equ tab$ to char(09)
equ crlf$ to char(13):char(10)
 
myData = ""
filename = "C:\temp\my_data.txt"
 
Set_Status(0)
OSRead myData From filename then
   newline = "Hagbard":tab$:"Celine":tab$:"HM,SH"
   myData:= crlf$: newline
   OSWrite myData To filename
End else
   errorCode = status()
End