added public static to readfile_in_chunks function