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 -

What is expire header and how to achive them in ASP.NET and PHP? -

sql server - How can I determine which of my SQL 2005 statistics are unused? -