[1] If the nul char is an artifact coming from unicode format, you should simply open the text file using fso opentextfile method with specific parameter setting on unicode format. Read the file to a string and save the string to a text file of ascii format.
[2] If it is a generic data, then you can read the file and use regexp to do the replace.
[tt]
's the string from reading the whole file
set rx=new regexp
with rx
.global=true
.pattern="\00"
end with
s=rx.replace(s,"")
'save s to a text file
[/tt]
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.