Text Files
Text files are also sometimes known as sequential files
Accessing Files
There are three ways you can access file:
Sequential - This allows reading and writing of individual characters or entire lines. You can start at the beginning and read forwards until you reach the end.
Random - This allows you to read and write record that all have the same length.
Binary - This allows you to read and write to specific byte positions within a file.
Title
The Dir function attempts to match its input argument against existing files.
This function can be used with valid wild cards under Windows for matches such as "*.xls".
If it finds a match, it returns the first match found and can be called again without an input argument to get subsequent matches.
Does a file exist
Text Streams
There are three ways to access a file
Sequential
Random
Binary
Sequential Access
This methods starts reading from the start and reads a line at a time
The Open statement is used to open your file.
Additional
You can specify the exact position in a file using the Seek() function.
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext