Basics of File I/O
- Updated2025-01-22
- 1 minute(s) read
Basics of File I/O
A typical file I/O operation involves the following process.
- Create or open a file. After the file opens, a unique identifier called a refnum represents the file.
- Use a VI or function from the File I/O palette to read from or write to the file.
- Close the file.
File I/O VIs and some File I/O functions, such as the Read from Text File and Write to Text File functions, can perform all three steps for typical file I/O operations. The VIs and functions designed for multiple operations might not be as efficient as the functions that perform individual operations.