in c shell, how to open a file that contains a single digit

Posted by n00b programmer on Stack Overflow See other posts from Stack Overflow or by n00b programmer
Published on 2010-04-16T13:27:11Z Indexed on 2010/04/16 13:43 UTC
Read the original article Hit count: 442

Filed under:
|
|
|

I need to open a file using c shell. The file contains a single integer, and I need to put it into a variable, increase it and put back into the file. Meaning, if the file contains the number 5, I need, after the program runs, that the file contains the number 6. Any suggestions?

© Stack Overflow or respective owner

Related posts about csh

Related posts about file