comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Writing a modified .txt file issue
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Writing a modified .txt file issue [message #85390 is a reply to message #85383] Tue, 30 July 2013 05:43 Go to previous messageGo to previous message
David Fanning is currently offline  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.")
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Find all user-defined structure definitions
Next Topic: Multiple plots with plot function

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sun Oct 12 12:16:30 PDT 2025

Total time taken to generate the page: 1.44142 seconds