Click to See Complete Forum and Search --> : How can I write some text to file named "test.txt"


Coder79
August 2nd, 1999, 05:17 AM
Good afternoon everybody!

Sorry for my lousy english.
I really hope someone can help me. I'm a beginner who needs help. I have a project and I need to save some information to a text-file. How can I do that. I know there are some
Open "something" For Output As #1
and so on, but I don't know how to use them right.

Please, HELP

Micahel

Lothar Haensler
August 2nd, 1999, 06:31 AM
dim hFile as integer
hFile = freefile
open "yourfile" for output as #hFile
print #hFile, "yourstring"
close hFile