| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | fopen - specify directory |
MM> if I try to include the path in the file name such as
MM> fopen("c:\testfile", w); it does not work.
MM> How do you specify the path for file creation?
Your string literals in source code may not contain the
backslash character by itself, since it is the initializer
to the C text source string escape sequence, such as found
with '\t', '\0', '\n', and '\a'. If you want the backslash
in your C source string literals, you must use '\\', so that
the precompiler will recognize that you want a backslash.
fopen("c:\\testfile", w); /* this will work. */
> ] * Origin: *YOPS ]I[* 8.4 GIG * RA/FD/FE * Milwaukee, WI (1:154/750)SEEN-BY: 396/1 622/419 632/371 633/260 267 270 371 634/397 635/506 728 SEEN-BY: 639/252 670/213 218 @PATH: 154/750 222 396/1 633/260 635/506 728 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.