I am trying to pratice c programming, i am trying to write a very simple program that would record a order and write it to a text file, problem is the program crashes when trying to use fprintf.
I have changed the fprintf line to print on stdout and it works, but not for a file.
Here is the code
[C] order c program - Pastebin.com
This is happening on both my desktop(linux), and my android phone(using c4droid)
Please help me, much appreciated