|
To save data to a file:
The following opens a file, using mode OUTPUT and number 1, and then saves the text Hello World! to the file:
PRINT #1, "Hello World!" CLOSE #1 To open a file for "reading," call OPEN and pass INPUT as the file mode. Then you can read the data by using the INPUT command.
INPUT #1, text$ CLOSE #1 PRINT text$
Feel free to distribute this tutorial, upload it to your website, link to it from your site, etc. http://www.geocities.com/progsharehouse/qbtutor Mirror: http://development.freeservers.com/qbtutor |