Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
creating a text file
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="simon77" data-source="post: 1543251" data-attributes="member: 310862"><p>okey.. that sounds logical.. so, example could be: fr=fopen("\user\documents\hello\cool.txt", "w")? .. and when I use </p><p>if((fr=fopen("cool.txt", "r")) == NULL) </p><p>printf("hi"); </p><p></p><p>it prints hi, even though I put the text file in the same directory as my project..</p></blockquote><p></p>
[QUOTE="simon77, post: 1543251, member: 310862"] okey.. that sounds logical.. so, example could be: fr=fopen("\user\documents\hello\cool.txt", "w")? .. and when I use if((fr=fopen("cool.txt", "r")) == NULL) printf("hi"); it prints hi, even though I put the text file in the same directory as my project.. [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
creating a text file
Top