+ 5

Fstream problem

I tried to use fstream on my android device with cppdroid to read a text file contains words . It works but the size of strings that I had read is bigger than the original size ex: text file : hello output hello size of string 8 how can I solve this <sorry for the bad language>

2nd Dec 2017, 9:26 PM
Coder++
Coder++ - avatar
1 Answer
+ 1
The size is probably how much space the string takes, not how many characters it contains. Try checking how much space a character takes.
2nd Dec 2017, 10:40 PM
Edhi7
Edhi7 - avatar