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

Home » Public Forums » archive » Write to a certain line of a file
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: Write to a certain line of a file [message #79047 is a reply to message #78964] Fri, 20 January 2012 08:26 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Mark Piper writes:

> Ah, nuts! Yeah, I understand. I guess it's moot anyway because, as David
> has shown, it's trivial to read/replace/rewrite a text file.

Well, it wasn't as trivial as I might have led you to
believe yesterday. For some reason, I left the part out
of my example where I actually wrote the *strings* back
into the file! So, instead of taking 0.014 seconds to
write a 10000 line file, it actually took something like
0.033 seconds. Still *mostly* trivial. ;-)

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Write to a certain line of a file
Next Topic: IDLVM and execute

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

Current Time: Fri Oct 10 00:39:31 PDT 2025

Total time taken to generate the page: 0.31987 seconds