Noonga
02-22-2012, 07:56 AM
Hi all,
I have fwrite() writing to a text file called 'numbers.txt'. The text file content is "23".
I learn't fwrite() from the manual, so did:
f$fp = fopen('/opt/numbers.txt', 'w');
fwrite($fp, '1');
fclose ($fp);
I have used fwrite() to try and make the file content "123", but fwrite() writes over the content of the file, resulting in it just containing "1".
I couldn't find anywhere about writing into, rather over, and hoping someone could please help me out.
I have fwrite() writing to a text file called 'numbers.txt'. The text file content is "23".
I learn't fwrite() from the manual, so did:
f$fp = fopen('/opt/numbers.txt', 'w');
fwrite($fp, '1');
fclose ($fp);
I have used fwrite() to try and make the file content "123", but fwrite() writes over the content of the file, resulting in it just containing "1".
I couldn't find anywhere about writing into, rather over, and hoping someone could please help me out.