Fix for removed readlines(File,Function) syntax