ryan crey
February 23rd, 2003, 08:17 PM
Hello,
i've a txt file and somewhere inside it i put
------- xxx.txt ---
content content content content content content content content content content content content content content content content content content content content content content content content content content content content $CHANGEME$ content content content content content content content content content
------- xxx.txt ---
what would be the best way to search for $CHANGEME$ inside it and change to something which i will define later? i know how to open/read, but dont know how to search, i could hardcode the offset of $CHANGEME$ but it may vary from file to file
any help is appreciated.
ryan
i've a txt file and somewhere inside it i put
------- xxx.txt ---
content content content content content content content content content content content content content content content content content content content content content content content content content content content content $CHANGEME$ content content content content content content content content content
------- xxx.txt ---
what would be the best way to search for $CHANGEME$ inside it and change to something which i will define later? i know how to open/read, but dont know how to search, i could hardcode the offset of $CHANGEME$ but it may vary from file to file
any help is appreciated.
ryan