I am using a VDrive to log temperature data to a usb stick, no problems.
But, I want to be able to change the text file that is written to the VDrive to show the day that the data is written.
This the code that writes the file at the moment--
openfile1:
hserout 0,("opw Log.txt",CR)
pause 1000
gosub get_response
return
I want to be able to use a variable in place of the "log.txt" in the above, so that each day a new file is written with the day number as the text file name.
The device has a real time clock on board to get time and date.
Any thoughts would be welcome.
Regards
But, I want to be able to change the text file that is written to the VDrive to show the day that the data is written.
This the code that writes the file at the moment--
openfile1:
hserout 0,("opw Log.txt",CR)
pause 1000
gosub get_response
return
I want to be able to use a variable in place of the "log.txt" in the above, so that each day a new file is written with the day number as the text file name.
The device has a real time clock on board to get time and date.
Any thoughts would be welcome.
Regards