View Single Post
  #1  
Old 01-31-2006, 11:12 AM
remmie remmie is online now
Registered User
 
Join Date: 01-31-2006
Posts: 2
Post Increment Value within a Text File

I would like to open the file, increment the values then close it.

Test.txt
Input:

Code:
/* 
Some Comment
*/

#define BUILDNUM      1111
#define VERSION "5.06.0.1111"
Expected Output:

Code:
/* 
Some Comment
*/

#define BUILDNUM      1112
#define VERSION "5.06.0.1112

Thanks alot, I have looked at many of the other examples but could not get them to work in this way.
Reply With Quote