replace fopen/fread loop with readfile