0
簡單的問題。我將條目附加到文本文件中,並且我希望在下一行中包含每個新條目。因爲它站在這裏,所以後面的條目會在最後打印。我會輸入什麼內容來寫入新行中的每個條目?使用Windows。使用fopen寫文本時的新行
$fh = fopen($dir . '/' . "Cause.txt", 'a') or die("can't open file");
fwrite($fh, $affiliation . "\n");
fclose($fh);
謝謝!
取決於操作系統。在Unix * – 2012-04-10 18:00:00