Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Examples of function form of OPEN?
#1
Does someone have a working example of the new function form of OPEN, CLOSE, GET #, PUT#?

What do they return?

Will they save us from calling FREEFILE before each OPEN?


And what's the use of PIPE: ?

Sometimes a simple changelog is not enough...
Antoni
Reply
#2
OPEN, CLOSE, GET and PUT return 0 if no errors happened, and the runtime error (1 or above) otherwise.

OPEN is the clumsiest, due it's syntax (keywords used instead of constants etc)

if open( filename for input as #1 ) then and if open( filename, for input, as #1 ) are both valid.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)