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



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,

--
Best Regards, Keith
(o_
//\
V_/_

.



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: Switch(score)
    ... this problem only occure after ...result=9 ... Looks like you're retrieving only the character at position 8 in the ... query string. ...
    (comp.lang.javascript)
  • 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 count [gets $inFile line] ...
    (comp.lang.tcl)
  • Re: Read only last line-
    ... long prev = 0, here; ... here is really the end of file and prev is the offset to the ... Thank you for reading. ... Reading the file character at a time simplifies things so I don't need to know how long a line is. ...
    (comp.lang.c)
  • Re: Read only last line-
    ... this works fine if the integer is only a single character. ... on text streams. ... long prev = 0, here; ... At EOF, here is really the end of file and prev is the offset to the previous line. ...
    (comp.lang.c)