Skip empty lines - file functions
#1

Hey, I was wanted to read some data from a file when the server starts.

The file contains empty lines. I thought I will just get an empty string, but "isnull" function says it isn't. I printed out the string as an int and got 13, which is something called "carriage return"...

My question: how do I detect these empty lines?



P.S. The file contains just some data like coordinates and some text. I only load it when my mode starts and speed is not the problem. Also, I don't need key-value, so don't suggest using other file reading/writing systems.
Reply


Messages In This Thread
Skip empty lines - file functions - by dusk - 11.02.2014, 15:26
Re: Skip empty lines - file functions - by PowerPC603 - 11.02.2014, 15:46
Re: Skip empty lines - file functions - by dusk - 11.02.2014, 15:49
Re: Skip empty lines - file functions - by ColeMiner - 11.02.2014, 17:22

Forum Jump:


Users browsing this thread: 1 Guest(s)