by SpudSoft (2 Submissions)
Category: Files/File Controls/Input/Output
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Sun 22nd June 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)
Opens a text file to read or write. This is the easiest way to do it.
'To read from a file:
Open "C:/Data.txt" for input as #1
Input #1, x
Close #1
'Now to write to a text file
Open "C:/Data.txt" for Output as #1
write #1, "This is a test"
Close #1
No comments have been posted about Opens a text file to read or write. This is the easiest way to do it.. Why not be the first to post a comment about Opens a text file to read or write. This is the easiest way to do it..