I have added the following to my program and the start input stopped reacting. It needs to be pressed a few time before reacting.
[OPEN \"LOGFILE\" FOR APPEND AS #1]
[PRINT #1,DATE$;]
[PRINT #1,TIME$;]
[PRINT #1,PROGRAM$]
[CLOSE #1]
The program can be started when pressing Function keystrokes.
When I remove these lines of the program everything gets back to normal.
Any suggestion about how to log to text file during program execution without generating this problem?
Thanks
Start input not responding when trying to writ to text file
Moderators: Jason Susnjara, Larry Epplin, Clint Buechlein, Jim Bullis
-
- New Member
- Posts: 8
- Joined: Tue, Jun 26 2007, 3:55PM
When choosing to open a file for append you will need to supply a data path, then when finished, you will need to close txt file to allow control to continue through program on screen.
Ex:
[OPEN \"D:\\directory\\directory\\directory\\filename\" FOR OUTPUT AS #1]
[PRINT #1,\"TEST\"]
[CLOSE #1]
I hope this information has been helpful.
Ex:
[OPEN \"D:\\directory\\directory\\directory\\filename\" FOR OUTPUT AS #1]
[PRINT #1,\"TEST\"]
[CLOSE #1]
I hope this information has been helpful.