I am having a stupid problem, and I don't quite know why. I am tryin to write data to a file, and read it back later. The problem is that when I write the formatted date, it prints extra characters to the front of the string, that screw up reading the lines back in. The characters are "space-square-space-square". This is directly followed by my string. I know what line is doing it, but don't understand it. It is the line the first Put line.
The other problem is that the format of the date is not working correctly. That is, if the date/time was today at 3:45PM, I want it to be formatted like "12/19/03 15:45", but that doesn't seem to be working either. Any ideas?
Any help is much appreciated. Thank you!
Jon
Code:
checkDateTime = Format(Now, "mm/dd/yy hh:mm")
checkModel = model
'Open hLogFile for Binary Write Access
Temp = "c:\" + model + "\counts\count.txt"
hLogFile = FreeFile
Open Temp For Binary Access Write As hLogFile
'Enter Date/Time/Model
[COLOR=red]Put hLogFile5, , checkDateTime & cr[/color]
Put hLogFile5, , checkModel & cr
Any help is much appreciated. Thank you!
Jon