Hello

Im posting this in C because Arena is highly influenced by C....

Im trying to open a file using fopen but I cant get it to work. Ive made the permissions on the file 777 (all) just in case but it doesnt work. Can someone please test that it works out correctly?

Thank you

Recommended Answers

When that happens the file is either not where the program expects it to be, try adding the full path to the file name and see if that works. Or you misspelled the filename. *nix file names are case sensitive, so you must make sure the name is exactly as …

Jump to Post

All 3 Replies

When that happens the file is either not where the program expects it to be, try adding the full path to the file name and see if that works. Or you misspelled the filename. *nix file names are case sensitive, so you must make sure the name is exactly as it appears on the hard drive.

Im trying with the full path name and exactly how it is written (case sensitive). But nothing.....

Something like:

system("touch /tmp/test");

Doesnt work either.

check if you have permissions to do that. Can you do it from the console?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.