hi all,
please help me…i am really in an awkard position.
i need to change an entry in a binary file.
I am having a binary file EG.bin and EG.cfg.
i need to open the cfg file and change an entry in that…
right now what ppl are doing is … opening the cfg(configuration file) file using VC++
then change the content manually
but i need to write a python script that solves the problem.
i tried opening the file using
binfile = file(“EG.cfg”,“rb”)
for line in binfile.readlines():
print line
Now close it again
binfile.close()
what now happens is i am not getting the values … instead of that i’m getting junk values…
Any idea how to open a binary file so that we can get the values correctly???
···
–
Regards,
Shine Anne