Re: Stumped by open("PRN","w")
- Posted by cEnsE <cense at MAIL.RU> Jan 22, 2001
- 627 views
On Sun, 21 Jan 2001, Jim wrote: >> Hi,cEnsE, >> >> Thanks for trying to help. But, this is one of those very rare instances in >> which I think you may have missed the mark. >> >> The code in question >> >> ThePrinter = open("PRN","w") >> >> has been pretty much copied directly from an example given in the Euphoria >> documentation (see "open" in the docs). >> >> The only difference being that I named the receiving variable differently, >> i.e., ThePrinter instead of Rob's file_num. >> >> I did, however, try open("LPT1","w") and open("prn","w") and a few other >> things before harrassing the list with my question. >> >> As I said, thanks for taking the time to try to help. >> >> Regards, >> >> Jim Am I really stupid and do not understand "open( )"? should it read: ThePrinter = open( PRN, "w" ) ? (note the no quotes). I think its just that im stupid. Is "PRN" a global variable or is it a special sequence? what if i wanted to open a file called "PRN"? >> cEnsE wrote: >> >> > >> > What exactly is this "PRN" ? the way you have it coded, if im not mistaken, >> > the open call will open a file in the current directory called PRN. I may >> > very well be mistaked but from a quick look over this "PRN" stands out as a >> > possible source of your problem. >> > >> > I hope that helps, but if not, i tried. >> > >> > -- >> > evil, corruption and bad taste >> > ^[cense] -- evil, corruption and bad taste ^[cense]