what/where is your code? you need to have your code find the 110 number then just change it to 255, else every thing else is 0 (zero). Open file then loop through the (array) file with an if statement checking each "chunk of data" for the value of 110, change that to 255 else 0.
Code:
if (value[a] == 110)
value[a] = 225;
else
value[a] = 0;
do not forget your loop. where 'a' is the count var in this example. remember it is an example of the method, actual code may not be the same.
do not forget to write that to an output file as well.
Their is plenty of how to do every step of that out there in la la land. even in this place. Then if you get lost somewhere in that code, post back and I am sure someone will be happy to help you with it.
basic steps.
- open file
- read file
- check data
- create new file
- write new values into a separate (new) file.
- close both files
- exit program
- check results in your new file.
the creating of a new file, that step gets put where it is necessary. it might be more towards the top of that list, even.
open file, if file open , hold on to it, then create a new file, then search your open file, write to your new file in the loop as you change the values. close both files when done. program could end there, or you could re-open new file print it out to the screen to see what you did to it. then shut down your program.
formatting your output file I think will be the hardest part.