Mail Archives: djgpp/1996/08/18/10:17:05
In <4v3350$nqq AT nntp DOT igs DOT net> stupy AT thecds DOT com (Steve Tupy) writes:
>cs3prj04 AT lion DOT cs DOT latrobe DOT edu DOT au (Cs3prj Group 04) yammered :
>
>>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.
>
>FILE *fp = fopen("/usr/local/bin/myfile_what_is_this_doing_here.txt",
>"rt");
>
> or whatever open mode you prefer!
Why did you prefer "rt" to, say, "ry" or "rz"? To the best of my
knowledge, all three of them are guaranteed, by an international
standard, to be equivalent to the good old "r" mode.
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 -