I have a ini file that has trailing ASCII(0)
And the result is that readinifile cant read beyond the first occurance of ASCII(0)
I have tried to readLN and stringreplace on the file. But how do I remova a ascii(0)?
Any ideas?
Thanks!
removing trailing ascii(0)
Moderators: JRL, Dorian (MJT support)
-
- Pro Scripter
- Posts: 149
- Joined: Tue Mar 23, 2004 9:11 pm
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
0 is a null char. It normally marks the end of a string.
But, you could try:
VBSTART
VBEND
VBEval>CHR(0),NullChar
StringReplace>text,NullChar,,text
But, you could try:
VBSTART
VBEND
VBEval>CHR(0),NullChar
StringReplace>text,NullChar,,text
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?