Re: Bests way to handle lines in files with only a return character?
- From: "Gerald W. Lester" <Gerald.Lester@xxxxxxx>
- Date: Thu, 29 Dec 2005 11:26:14 -0600
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. .
- References:
- Prev by Date: Re: file readable / open
- Next by Date: Re: elapsed time
- Previous by thread: Bests way to handle lines in files with only a return character?
- Next by thread: Re: Bests way to handle lines in files with only a return character?
- Index(es):
Relevant Pages
|