Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

byte to char conversion

Status
Not open for further replies.

pad

IS-IT--Management
Jun 21, 2001
1
US
I've written into a random access file using read(buffer) and I'm reading it using read(buffer), where buffer is a byte array. When I tried to convert the read bytes into characters, I'm unable to do the conversion. The system is again showing me bytes. Can anybody suggest me the best way to convert bytes to char
 
why don't u read all the bytes into an array and create a string from it? from there all the chars are available.

i can't remember if you can cast straight from byte to char...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top