use “fread” to read file, faster