trailing carriage return in file
| From: | Alex Ciurea | Date: | Wed, 08 Oct 2003 12:09:02 +0000 |
| Subject: | trailing carriage return in file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-165407@lists.php.net to get a copy of this message | ||
hello guys,
I don't know how can I eliminate from a file the trailing <cr>? "\n"
I have a file that ends-up with one ore more <cr>
it looks like this:
BeginOfFile
data here
[....]
end of data
EndOfFile
after data I have one or more <cr> (the file don't ends immediately)
i don't know how to match, using preg_replace() the '\n' character...
it's something like "/\\\\n/" ?
thanks,
>>>>>>>>>>>>
Have a nice day ! (And I'm sure that tomorrow will be better than today!)
Alex Ciurea Greets You
www.netonwave.com