1

I have a problem with a txt file. I create with:

$myFile = $data_stampa . ".txt";
$fo = fopen($myFile, 'w') or die("can't open file");
 $stringData .= $var1 . $var2 . $var3 . "\r\n";
fwrite($fo, $stringData);
fclose($fo);

My file are ok, but when I put on a reader, say I need "\r\n". Where are my mistake??

EDIT For example, I create a line like this 1717/04/2014 2Surname Name 124/12/1969 100000216100000216PASORcgllk71xk 100000216 the white space are a fix number, for example for surname I need 50 character. for name 30. At the end of each line I need to put my \r\n but tho reader don't see.

0 Answers0