The OPEN statement is used to open sequential data file for writing data to the data file or reading data from the data file using OUTPUT, INPUT or APPEND mode.
- Syntax:
- OPEN "file name" FOR MODE AS # file number
- Eg: OPEN "employee.txt" FOR OUTPUT AS#1
- Eg: OPEN "O", #1, "employee.txt"