ASCII to bit

HI!
I have a problem! I have a code that copies data from a .txt file and send it to a device.My problem is that every character in .txt is sent as ASCII code not the character itself.For example, I want that when he send "2" from the .txt file to send 2 not 0x32. How can I accomplish this?
tnx!
int atoi ();
Topic archived. No new replies allowed.