The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: txt files, read and write
Replies: 7   Last Post: Oct 1, 2013 8:51 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 5
Registered: 9/30/13
txt files, read and write
Posted: Sep 30, 2013 3:56 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

Hello, i have the following problem.

I have a cfd. file that i can read and edit it via text editor such as notepad. What i want, is from that file to change specific numbers in it. I already used a variety of the printf, textscan and such commands but the problem is that for some reason it changes the structure of the file.
The .cfd file is the following:

I want to change a number without ruin the structure of the file because then i use that file in a program. If i change the structure, the program will be unable to read it. What i mean by changing the structure, you will see by yourselves if you run the standard textscan and fprintf commands.

Thanks in advance, i am out of ideas here!!!

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.