Returns content of a whole file or its part.