Hey, what is the code to create a file in a different directory than the one the C program is in? Say the program is in c:\x\yy, and I want the program to create a text file in c:\x\zz\top.
Hey, what is the code to create a file in a different directory than the one the C program is in? Say the program is in c:\x\yy, and I want the program to create a text file in c:\x\zz\top.
fopen("full/path/to/dir/filename", "w");
R.I.P C89
or
fopen("full\\path\\to\\dir\\filename", "w");
Definition: Politics -- Latin, from
poly meaning many and
tics meaning blood sucking parasites
-- Tom Smothers
Or
Or some other implementation dependent way of specifying file structure paths. C doesn't care as long as the path eventually resolves to something valid.Code:fopen ( "full:path:to:dir:filename", "w" );
My best code is written with the delete key.
Prelude.
Which filesystem/OS uses colons as a separator?
R.I.P C89
Macintosh before they began to use Darwin as the environment behind OS X.
My best code is written with the delete key.
Cool. Yeah I was just informed that on IRC too.
What was the equivalent of ../ then? ..:?
R.I.P C89
>What was the equivalent of ../ then?
Clicking on the up arrow?
My best code is written with the delete key.