Hi, when i attempo to truncate a file to 0 and write some text inside it, i've a strange problem
This is the code
$errors=fopen("error_links.txt", "r+");
$leggiErr=fread($errors, filesize("error_links.txt"));
$videoArray = explode("\n", $leggiErr);
ftruncate($errors,0);
fwrite($errors, "lol");
And this is the result:
������������������������������������������������������������������lol
What are this series of "�" ?? Note that i've deleted a lot of it, they are much more!


