*/
public final function saveFile ($fileName, $dataArray) {
// Try it five times
- $dirName = ''; $fileInstance = null;
+ $dirName = ''; $fileInstance = NULL;
for ($idx = 0; $idx < 5; $idx++) {
// Get a file output pointer
try {
$fileInstance->closeFile();
// Convert it into an array
- $inputBuffer = explode("\n", $inputBuffer);
+ $inputBuffer = explode(chr(10), $inputBuffer);
// Now process the read lines and verify it's content
foreach ($inputBuffer as $rawLine) {
$readData .= $data[0];
} else {
// Other raw lines than header/data tagged lines and re-add the new-line char
- $readData .= $rawLine . "\n";
+ $readData .= $rawLine . chr(10);
}
} // END - foreach