Read individual file lines - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Read individual file lines (
/showthread.php?tid=272033)
Read individual file lines -
dowster - 26.07.2011
I have a .txt file with 355 lines of different messages, i want to read each line and format it as its own string, how would one do this? I'm thinking sscanf might be needed? currently i have a loop for all the lines, but idk how to get it to read the specific line, also do the lines start at 1 or 0?
Edit: nvm i think i got it, i didn't understand the wiki at first