Outputting strings to human readable text

AdrianPyro
10-27-2004, 03:14 PM
How to I output strings as readable text in notepad
i'm using this type of output

Open "c:\currentList.txt" For Random As #1 Len = 1000
put #1, 1, variable1
close #1

but this outputs as... machine language..?

JPB
10-27-2004, 03:19 PM
To create a regular Text file:


Dim lngFF As Long

lngFF = FreeFile
Open "c:\currentList.txt" For Output As #lngFF
Print #lngFF, variable1
Close #lngFF

stevo
10-27-2004, 03:19 PM
try this instead

Open "c:\currentList.txt" For Output As #1
Print #1, variable1
close #1


theres a good file i/o tutorial in tutors corner

AdrianPyro
10-27-2004, 03:33 PM
thank you... worked great... i'm not retarded

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum