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 #85053 is a reply to message #85043] Wed, 26 June 2013 13:43 Go to previous message
Helder Marchetto is currently offline  Helder Marchetto
Messages: 520
Registered: November 2011
Senior Member
On Wednesday, June 26, 2013 4:19:16 PM UTC+2, David Fanning wrote:
> 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.")

Hi, thanks for the answers.
In my example I used numbers and that is not actually the only thing I'm dealing with. Some of the fields refer to directories and these change (in length) all the time.
David: I don't find it slow, but sometimes I have the feeling I'm making things more complicated and "you" guys have better ways...
Thanks anyhow... now I feel like I'm doing the right thing :-)

Cheers,
Helder
[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 18:00:57 PDT 2025

Total time taken to generate the page: 0.00217 seconds