Originally posted by Steve Rossell
View Post
I knew that, and I also knew Michaels point about what is read from the disk. Please read the code, I never reassign the fixed length string so it is never padded with chr$(32)'s which is why the variable length string t cannot display like the printout in a textbox as it will stop at the first chr$(0), expected situation. I actually during testing had code to detect the chr$(0)s to confirm my suspicion of that being the problem.
Please note my final comment that if I just then PRINT to a file the variable length string t (which by its inability to be completely displayed in the multiline textbox demonstrates the presence of chr$(0)s) it gives an identical output to the single line print I showed. So at some stage a conversion must be being done.
That is why I also checked it in notepad as that should show a non printable ANSII character as a black square (no Michael Windows does not use ASCII by default)
Leave a comment: