Quick question about text files...

Reapz

Well-known member
Joined
Dec 15, 2002
Messages
74
Ive been writing an app to compile data from server logs and up to this point I have been generating test logs on my machine.

I have just got some real logs of the server (which is linux i think) and theres a difference...

My test logs contained all the information on separte lines and I was simply going through them to extract the data. The ones from the server contain exactly the same info but in a block of text with no separate lines. Instead of a newline there is one of those little squares (hmmm... that sounds technincal :D ) between each piece of info.

Rather than redo everything Ive done so far I was simply going to split the block of text and rewrite the file with everything on separate lines. Thing is I dont know what that little square represents so I dont know what to split the text by.

So if anyone can enlighten me that would be cool.

Cheers,
Andy!
 
Forget it... Im an idiot.

I assumed it would treat it as a block of text but it doesnt. It still reads it as separate lines.

Ill just be quiet now and go hide in a corner!
 
Back
Top