openflle

openflle (FILENAME,MODE)

Opens a flle in themode specifled in the stringMODE.Broadly equivalent to fopen in standard C. Returns a new flle handle, or, in case of errors, nil plus a string describing the error.Does not modify either _INPUT or _OUTPUT. The MODE string can contain: append update mode (previous data is preserved, append only at the end of flle)

  • r
  • read mode
  • r+
  • update mode (all previous data preserved)
  • w
  • write mode
  • w+
  • update mode (all previous data erased)
  • a
  • append mode
  • a+
  • append update mode (previous data is preserved, append only at the end of flle)
  • b
  • binary mode