Use the filesize() function to get the size of the file.Use the feof() function to test the end-of-file has been reached. Use the fgets() function to read a line from a file.Use the fread() function to read some or all contents from a file.The following example uses the fgets() funtion to read the population.txt file line by line:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |