Re: Writing a modified .txt file issue [message #85390 is a reply to message #85383] |
Tue, 30 July 2013 05:43   |
David Fanning
Messages: 11724 Registered: August 2001
|
Senior Member |
|
|
Heinz Stege writes:
> the reason is, that there are tabs (9b) instead of blanks (32b) in
> your text file. Only the first two columns are separated by a tab
> which is followed by a blank.
Well, I took the file from the person asking the questions.
I've already pointed out that the person giving him the file should have
all his fingers broken. Here is another reason to think so. :-)
> That makes pos=strpos(word,' ') to be -1 after extracting the first
> column. That, what your eyes see as column 2 to 5 is not splitted
> within the loop. It remains as one column in the word array.
Ah, this is probably also why I had to modify Wayne's code to get it to
work. I suppose this is just another way of endorsing READCOL, since
that reads the file correctly. It probably works because it has been
around long enough to have seen all the perversion in the world. ;-)
> But please, don't blame me to make cryptic code. ;-)
No, no. You weren't the one to create lists and hashes and the
_OVERLOADBRACKETSLEFTSIDE operator. I'm sure you had nothing to do with
cryptic code. :-)
Thanks for your help!
Cheers,
David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thue. ("Perhaps thou speakest truth.")
|
|
|