Hi this is a simple counter program.
$file = fopen("counter2.txt", "a+");
while(!feof($file)) //Loops as long as file-pointer is not at end of file
fgets($file); //Moves file-pointer exactly one line
"); //<<<<---HERES THE PROBLEM
When I open the counter2.txt in notepad it should look like this:
Currently it looks like this:
Looks like somekind of unicode error but fget() still interpret it as newline.
Thanks for your help.