Difference between revisions of "OPEN"

From QB64 Wiki
Jump to navigation Jump to search
Line 1: Line 1:
OPEN is used to open a file, COM(serial) or LPT port.
+
OPEN is used to open a file, COM(serial) or LPT(parallel) port.
  
 
Open can use 5 different modes:  
 
Open can use 5 different modes:  
Line 5: Line 5:
 
   [[OUTPUT]]: Creates a new file or erases an existing file for program output
 
   [[OUTPUT]]: Creates a new file or erases an existing file for program output
 
   [[APPEND]]: Creates a new file or appends data output to an existing file
 
   [[APPEND]]: Creates a new file or appends data output to an existing file
   [[BINARY]]: Creates a new file or uses input and output from an existing file
+
   [[BINARY]]: Creates a new file or uses input and/or output from an existing file
   [[RANDOM]]: Creates a new file or uses input and output from an existing file
+
   [[RANDOM]]: Creates a new file or uses input and/or output from an existing file
 
   [[INPUT]] : Only reads input from an existing file
 
   [[INPUT]] : Only reads input from an existing file

Revision as of 04:43, 28 August 2009

OPEN is used to open a file, COM(serial) or LPT(parallel) port.

Open can use 5 different modes:

 OUTPUT: Creates a new file or erases an existing file for program output
 APPEND: Creates a new file or appends data output to an existing file
 BINARY: Creates a new file or uses input and/or output from an existing file
 RANDOM: Creates a new file or uses input and/or output from an existing file
 INPUT : Only reads input from an existing file