Opens a file and returns a JSON-header and the generator for the plain data.
filename : string
file name of the file to read.