fread() and readfile() function