Posts: 175
Threads: 43
Joined: Jun 2004
I need to read, search, and extract a binary file's contents. The file contains many 0x00 chars. The string and file functions seem to think this is the end of the file so never read to the end. Is there anyway to handle this in QM. Thanks.
Matt B
Posts: 11,137
Threads: 129
Joined: Dec 2002
To search binary data, use findb().
str s.getfile("$qm$\system.qml")
;search
int i=findb(s "OpenSaveDialog")
out i
;replace all 0 to 1
for(i 0 s.len) if(s[i]=0) s[i]=1
out s
Duh, how dumb of me.:oops: If at first you don't succede read the directions.
Thanks thats what I needed . Your support is amazing.
Matt