Re: Perform maths based on a number in a text file [message #183802 is a reply to message #183768] |
Wed, 20 November 2013 11:58 |
drkirkby
Messages: 4 Registered: November 2013
Karma:
|
Junior Member |
|
|
On Monday, 18 November 2013 16:38:29 UTC, Jerry Stuckle wrote:
> Sure. Look up the file functions - fopen, fread, fwrite, etc. But you
>
> do have to watch out that another script is not accessing the file while
>
> you are writing it. Additionally, when you do write the file, you will
>
> need to write all values unless you're changing the last one.
I can edit the file with the constant in it using just a text editor (vi). No script or any other automated software will do it.
Since I know C, fopen, fread, fwrite probably have very similar meanings, and I could probably work that out.
Dave
|
|
|