31a Subj : Re: printing from 5.02 To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Wed Jun 29 2005 10:11 am jay widman wrote: >My 5.02 program needs to print a ascii file to a >print server. I've tried using: 16 bit or 32 bit progam? > system ( "copy ..." ) ; >This works on windows 98 machines but not on >2000 and XP machines. >Does anyone have other suggestions? Copy the file yourself. It's really quite easy. The exact code depends on what level you are writting your application. If you are striving for standard C, use the fopen/fread/fwrite/fclose group. If you want to use the WinAPI, use the CreateFile/ReadFile/WriteFile/CloseHandle group. Open both files in binary mode do read write while not eof Close both files . 0