Line Break Problem in .txt file
Posted: Thu Aug 06, 2009 5:18 am
Hi Friends,
I am facing a problem i want to create a file from different variables having date i.e:
$cheadline or $qsummary.
Now after cancatenation of these variables i have another variable that is $combine.
$combine=$cheadline.'\n'.$qsummary.'\n'.$fpara.'\n'.$lsentence.'\n'.$summrize.'\n'.$cinfo;
When i am using that code
$handle = fopen($filename, "w");
fwrite($handle,$combine);
Then file will be created but all the data are written on same line, without line break.
Please help me how can i break the line after the data of each variable.
Thank and Regards
I am facing a problem i want to create a file from different variables having date i.e:
$cheadline or $qsummary.
Now after cancatenation of these variables i have another variable that is $combine.
$combine=$cheadline.'\n'.$qsummary.'\n'.$fpara.'\n'.$lsentence.'\n'.$summrize.'\n'.$cinfo;
When i am using that code
$handle = fopen($filename, "w");
fwrite($handle,$combine);
Then file will be created but all the data are written on same line, without line break.
Please help me how can i break the line after the data of each variable.
Thank and Regards