Printing Array of Bytes to File
-
I currently have an array of bytes and I want to print it to a file. When I open the filename and do the following statement: Print #FileName, ArrayOfBytes it prints a bunch of question marks and other characters that aren't the correct characters. When I run the debugger, the values within the individual elements of the array are all the correct decimal ascii values. ArrayOfBytes(1) = 50 It should be "P", which is what I want printed. ArrayOfBytes(2) = 88 It should be "X", which is what I want printed. How do I print this to a file but get the correct character values? Thank you.
-
I currently have an array of bytes and I want to print it to a file. When I open the filename and do the following statement: Print #FileName, ArrayOfBytes it prints a bunch of question marks and other characters that aren't the correct characters. When I run the debugger, the values within the individual elements of the array are all the correct decimal ascii values. ArrayOfBytes(1) = 50 It should be "P", which is what I want printed. ArrayOfBytes(2) = 88 It should be "X", which is what I want printed. How do I print this to a file but get the correct character values? Thank you.