I am trying to keep a data file but I'm getting confused with the sizeof(char) = 2 bytes. I understand that it is a unicode char but why does class BinaryReader's function ReadChars(int count) function just increases the streams position by count bytes ?
If that is not clear here is what I ask;
sizeof(char) = 2 OK!
when I say
BinaryReader fileReader = new BinaryReader(File.Open(fileName, FileMode.Open)); fileReader.ReadChars(100); // Here it increases the current stream position by 100 bytes , but it should be sizeof(char) * 100 = 200 bytes