Load string from binary file

What is the best method to load a string with known length from binary file ?

It entirely depends upon how the string has been encoded.
With what was the string written?

The string was written with the C standard library function fprintf. Must be ASCII then.