stream types
Say I have an int and I want to write it to a text file:
1 2 3 4
|
theFile.open("numstrng.txt", ios::out);
int i = 23;
theFile << i << endl;
|
Is i automatically converted to char i[3] (C) or is it stored as a binary number? In other words, do I have to convert int to char (using C types)?
It's converted to characters on the stream.
kbw: thanks.
Topic archived. No new replies allowed.