reading a file line at a time? and strtok()
reading a file line at a time? and strtok()
Hey i just decided to start deving for the psp aswell now and i am having difficulties... Is there anyway i can read line line at a time from a file? l am also having dificulty using strtok(). the compiler wont recognise it it throws out the undefined reference to "strtok"error, oh and i have included string.h
typing in "man fgets" in bash should solve the first problem.
If you use the sceIo* functions, it will be a bit harder. You could read the file in a few bits at a time and check them to see if a \n is found, or you could read in the entire file and then loop through it and do something everytime a \n is found.
No clue what strtok is, so I can't help you there.
If you use the sceIo* functions, it will be a bit harder. You could read the file in a few bits at a time and check them to see if a \n is found, or you could read in the entire file and then loop through it and do something everytime a \n is found.
No clue what strtok is, so I can't help you there.