File write in C confusion -


Hello I work on the window, but the text file on Linux will be attached at the bottom of the text file I use at the top Code is code should use only C

  FILE * fout; Fout = fopen ("dat.txt", "a"); Fprintf (prohibition, "& amp;";); Fclose (fout);  

Please help Thanks

Errors returned from those system calls Check this - this code looks correct and also to check that you are not accidentally matching dat.txt anywhere in your code.


Comments

Popular posts from this blog

c++ - Linux and clipboard -

Visual Studio 2005: How to speed up builds when a VSMDI is open? -

booting ubuntu from usb using virtualbox -