add a function to read the entire file, fix windows tests