Movian
08-19-2011, 11:37 AM
Hi,
I am attempting to update a script that pulls in a comma delimited file of sorts.
One of the things that the system does is check for empty lines for spacing. However recently some of the produced files instead if having an empty line will have a variable number of commas on it ",,," or ",,,,,,"
What i need is a quick and easy way to determine if the line has any data OTHER than a , . I have written up a couple functions that check each character on the line and if there is something other than a , it throws it back however it was a little cumbersome.... is there another method that i am not aware of.
I am attempting to update a script that pulls in a comma delimited file of sorts.
One of the things that the system does is check for empty lines for spacing. However recently some of the produced files instead if having an empty line will have a variable number of commas on it ",,," or ",,,,,,"
What i need is a quick and easy way to determine if the line has any data OTHER than a , . I have written up a couple functions that check each character on the line and if there is something other than a , it throws it back however it was a little cumbersome.... is there another method that i am not aware of.