I modified my program a bit to read using a non-canonical method, one byte at a time. I made it print out each character and the hex value, so I know now that my Palm program is outputting the correct sequence of characters, I just can't figure out why I can't use a canonical input method to read the same data. Here is the output now:

Code:
char: B hex: 42
char: E hex: 45
char: G hex: 47
char: _ hex: 5f
char: _ hex: 5f
char: E hex: 45
char: N hex: 4e
char: Q hex: 51
char:
hex: a
char: hex: 0
char: 0 hex: 30
char: 0 hex: 30
char: 0 hex: 30
char: 0 hex: 30
char: 0 hex: 30
char: 1 hex: 31
char: B hex: 42
char: 4 hex: 34
char:
hex: a
char: hex: 0
char: E hex: 45
char: N hex: 4e
char: D hex: 44
char: _ hex: 5f
char: _ hex: 5f
char: E hex: 45
char: N hex: 4e
char: Q hex: 51
char:
hex: a
char: hex: 0


So this proves that my output from the Palm is OK, I think. I can code my program to read the input in a non-canonical way, character by character, but this seems like a bad way to write it if I could do line-based processing instead. Any ideas as to how to make this program process the input line-by-line instead of by character?
_________________________
Mark Cushman