edit info in a .dat fileSubmitted by Travis Carrico on April 23, 2008 - 4:22pm
is there any way to edit a .dat file from nsis or possibly another scripting language? i know it depends on the .dat file. the one i'm interested in when opened with notepad is mostly a bunch of gibberish, but the string i want to edit shows up correctly. ( categories: )
|

If the string you need to
If the string you need to change is always as the same offset, you could try FileReadByte and FileWriteByte.
Or
ReplaceInFile, and fileread...
FileRead can be found here: http://www.nullsoft.com/free/nsis/makensis.htm#FindFirst
Somebody give me a portable video editor... Please!
If ya wanna see my email, go to digitxpsemail.tk (at least for now!)
My dad saved over $850 a month, by switching to Geico! :P
.
wraithdu, by the same offset, do you mean the info before the string i want can't change any? not really sure what you meant. honestly i have no idea what's going on in that file; i just know there's a bunch of weird characters and mixed in on about the 4th line there is a folder path that i need to have my script change. what would you do to accomplish this? or can it be done?
Hmm, ok, I figured out how
Hmm, ok, I figured out how File[Read/Write]Byte works, and it's probably too cumbersome to use. I'd try ReplaceInFile first, as suggested above, and see if that works for you.