Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!apple!bionet!csd4.milw.wisc.edu!indri!uflorida!novavax!rm1!davis From: davis@rm1.UUCP (Gary A. Davis) Newsgroups: comp.sys.ibm.pc Subject: Re: using files in C on the IBM PC Keywords: raw cooked binary Message-ID: <114@rm1.UUCP> Date: 22 Jun 89 01:18:30 GMT Organization: Racal-Milgo, Ft. Lauderdale, Fl. Lines: 27 This is in response to an article about ascii/binary and raw/cooked I/O from Tom Almy. At then end, Tom mentioned that he always issued the DOS calls directly to set raw mode (for the printer). What commands are these? I am sort of new to the IBM PC world. I have a graphics file to print generated by a filter and it happens to contain bit codes that happen to look like CR/LFs and ^Zs. I can print the file ok by COPY/B FILE PRN (I think this is the command I used). It fails due to a ^Z byte using the PRINT FILE command. I would like to use the spooler via the PRINT but is there a binary option? The filter creates the file but I think there are problems redirecting it to the printer. The filter does open the output (stdout) as binary (via setmode()) and is getting created ok when it is a disk file, but not when redirected as in: filter < input.fil > PRN Any ideas on this? Thanks... Gary -- Gary A. Davis Racal-Milgo, P.O. Box 407044, Fort Lauderdale, Fl 33340, (305) 476-4393 {{mailrus,gatech}!uflorida,ucf-cs}!novavax!rm1!davis