PDA

Click to See Complete Forum and Search --> : writing to a file


hbarker
Nov 22nd, 1999, 09:49 PM
I need tips on how to write to a file so that the " " do not appear and how to make a date and time write to a file in a format like this:
1122990100
instead of
11/22/99 01:00

Thanks

Aaron Young
Nov 22nd, 1999, 09:52 PM
Try using Print#, eg.

Open "C:\MyFile.txt" For Ouput As 1
Print #1, "Some Text Without Quotes"
Close 1

As the for Date/Time Format, use the Format Function, eg.

Print #1, Format(Now, "MMDDYYHHNN")

------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
adyoung@win.bright.net