How come that every time I use this code then Text will equal some weird signs like ",H×" allthough the file was completely empty. Other then that it allso tends to have problems with '/t' (tabulator) since sometimes Text "haves" them as it's supposed to and other times it have two in a road were only one was supposed to were.Code:char *Text; File.seekg(0, ios::end); Length = File.tellg(); File.seekg(0, ios::beg); Text = new char[Length]; File.read(Text, Length);
Why?