Mail Archives: djgpp/1996/08/16/18:45:31
In <4v1gkv$kld AT lion DOT cs DOT latrobe DOT edu DOT au> cs3prj04 AT lion DOT cs DOT latrobe DOT edu DOT au (Cs3prj Group 04) writes:
>Under UNIX, can you pass a file name with a path to fopen? If so how do you
>do it? I know that, under DOS, you do it like so : c:\\directory\\filename.ext.
Did you try to do it in the most natural way and it didn't work?
BTW, in DOS it's better to do it like this: c:/directory/filename.ext.
It's more readable and less error-prone (is there any DOS programmer who
_never_ forgot to duplicate the backslash? :-)
Dan
--
Dan Pop
CERN, CN Division
Email: Dan DOT Pop AT cern DOT ch
Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
- Raw text -