Re: Bests way to handle lines in files with only a return character?



Keith wrote:
I am running into a problem with lines in a file I am retrieving that only have a return character in them.
What is the best way to detect lines with only that character
in them?
Example
123.456780
123.567890


123.999999
123.888888

123.777777

TIA,


If you are using gets, as in: set count [gets $inFile line] then test for count to be equal to 0 or for [string equal $line {}] to be true. .



Relevant Pages

  • Re: Bests way to handle lines in files with only a return character?
    ... Keith wrote: ... > I am retrieving that only have a return character in them. ... set line [string trim $line] ...
    (comp.lang.tcl)
  • Re: Dexter: Some Observations (spoilers for episode 4-05)
    ... I was more upset about Keith Carradine's murder. ... I liked the character and thought he added a lot to the show, ...
    (rec.arts.tv)
  • Re: NOT OT - major issue
    ... Cassidy's character 'Keith' in 'The Partridge Family' was porking his ... step-sister. ...
    (uk.music.guitar)
  • Re: NOT OT - major issue
    ... I have full 20 min mental discussions with myself about whether David Cassidy's character 'Keith' in 'The Partridge Family' was porking his step-sister. ...
    (uk.music.guitar)
  • Re: How Important
    ... > Keith W wrote: ... >> In the del Coronado I'd probably be happy to pay it, ... >> you decided to eat in Joes Diner across the road in future:) ... McDonalds had more character ...
    (rec.travel.usa-canada)