Decode a normal string from the input file.
pointer to a variable to store the value in
total-len to decode.
file to read from
0 on success, -1 on error.