12-29-2010, 03:18 PM
Hm. Well what you can do is ... Its kinda complicated but lets see if I can explain it.
Now, I don't know how well this code would work, because I just came up with it off the top of my head, but it might give you a good idea.
Code:
dim reader as new system.io.streamreader(my.application.info.directorypath + "/map.ini")
dim read as string = reader.readtoend
if read.contains("TechOilDerrick") then
my.computer.filesystem.deletefile(my.application.info.directorypath + "/map.ini")
'At this point you would need to write the RANK settings into the textfile, and somewhere in the writer options you MUST specify appendmode=true
'Then, when appendmode = true, you can then writer.write(read) and it will just add it to the end of the text file
end if
Now, I don't know how well this code would work, because I just came up with it off the top of my head, but it might give you a good idea.