Mail Archives: djgpp/1996/08/20/10:09:53
Cs3prj Group 04 wrote:
>
> 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.
You sure can. On most UNIX file systems, you would use
"/path/name/file.name". The only difference is that most UNIX operating
systems use a forward slash instead of a backslash. As such, you need
not escape the slash as you do the backslash. There are no drive
letters in UNIX, only path names. And filenames and pathnames can
contain spaces and periods freely.
+-------------------------------------+
| Brian Sayatovic (bjs AT iti-oh DOT com) |
| ----------------------------------- |
| International TechneGroup, Inc. |
+-------------------------------------+
- Raw text -