int readString(uint length, string& out)/file

Reads a string from file. This method returns a negative value if it fails.