◆ fiftyoneDegreesTextFileIterate()
| void fiftyoneDegreesTextFileIterate | ( | const char * | fileName, |
| char * | buffer, | ||
| int | length, | ||
| void * | state, | ||
| void(*)(const char *, void *) | callback | ||
| ) |
Iterates over all the lines in a text file calling the callback method with each line.
- Parameters
-
- fileName - name of the file to iterate over
- buffer - to use for reading lines into. The buffer needs to be big enough to hold the biggest record, including its line ending.
- length - of the buffer
- state - pointer to pass to the callback method
- callback - method to call with each line
