Hello guys, I have a few quick (I should hope..) questions.
The assignment is that I'm to read in a file of an encoded message and decode it and print it.
I'm hung up on this:
I'm checking for
a) an ASCII 30 character, which I am supposed to change to a space (" ")
b) an ASCII 31 character, which I am supposed to change to a new line (\n)
c) a 4, which should become an apostrophe
Thanks draco, but I still can't get the ASCII 30 and ASCII 31 pieces right.
They show up in the text file I was given as a triangle and an upside down triangle. Is 0x1E and 1F the proper thing to have it look for? I still have no spaces or new lines in my output.
This is insane! Did he tell me the right ASCII character number? Because if they are indeed 30 and 31, why wouldn't any of your solutions have worked...