Page 1 of 1

printing to a file

Posted: Wed Jan 30, 2008 11:00 am
by gawumpi
greetings, not sure if anyone has had this problem,

am trying to print a basic listing to a text file, I have the printer option set to file, commands I am using are as follows:

OPEN 4,4
CMD 4,”PROGRAM LISTING”
LIST
PRINT#4
CLOSE 4

however, when I type in PRINT#4, I get device not present error, and typing PRINT#4 again the error does not appear, but the listing does not get sent to the file

what am I doing wrong? if anything?

Posted: Thu Jan 31, 2008 9:42 pm
by Stuart Toomer
This should work fine and does work OK for me in CCS64 V3.4. I don't know what you're doing wrong - check that Printer Device 4 is set to File and the File Name is Printer4.txt (or something similar).