physaux Posted November 3, 2009 Share Posted November 3, 2009 Why am I getting this error with fopen("../folder/file.txt", "w")? I thought fopen creates a new file, right? Quote Link to comment Share on other sites More sharing options...
marcus Posted November 3, 2009 Share Posted November 3, 2009 It will attempt to create the file, try using the full path to that folder. Quote Link to comment Share on other sites More sharing options...
physaux Posted November 3, 2009 Author Share Posted November 3, 2009 ahh I think I got it, i put "../" Because thats where the folder was relative to this file but this file is included in a deeper file, so for it I have to change it to "../../" Thanks anyways!! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.