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

Home » Public Forums » archive » Modify txt 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: Modify txt file [message #85043 is a reply to message #85039] Wed, 26 June 2013 07:19 Go to previous messageGo to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Helder writes:

> I've pretty much read text files pretty often, but haven't manage to modify a text file in a fast way...
> Here is the thing. Consider a text file like this:
> parameter1 = 5
> parameter3 = 2
> parameter2 = 8
> parameter7 = 23
>
> I would like to change a line 3 to:
> parameter2 = 9
>
> Is there a quick way to do this?

Do you find this slow? This is the way I've always done it with
configuration files. It has never seemed slow to me.

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
Previous Topic: IDL 8.2.2 direct graphics output to PDF?
Next Topic: coyote graphics /iso command

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

Current Time: Wed Oct 08 16:02:23 PDT 2025

Total time taken to generate the page: 0.00425 seconds