Click to See Complete Forum and Search --> : Writeing/Reading TXT Files/Help
slashandburn
Jan 25th, 2000, 11:41 AM
I need help on how to Open TXT,HTM,ANY TEXT THING for a programe and put it in a box and then write a TXT,HYM file with whats in the text box.
Joacim Andersson
Jan 25th, 2000, 03:14 PM
Use code simular to this:
Dim iFile As Integer
iFile = FreeFile
Open "c:\MyFile.txt" For Input As #iFile
Text1.Text = Input(LOF(iFile), iFile)
Close #iFile
'to write the file
iFile = FreeFile
Open "c:\YourFile.txt" For Output As #iFile
Print #iFile, Text1.Text
Close #iFile
Good luck!
------------------
Joacim Andersson
joacim@programmer.net
joacim@yellowblazer.com
www.YellowBlazer.com (http://www.YellowBlazer.com)
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.