I’ve seen many many tutorials about using fopen with the r argument. I’ve seen many where the code would search for a certain tag. But all of that’s opposite of what I’m needing to do.
The file is read by a piece of software written in c. All the lines are commented out with ; and after the last comment, thats where the software writes its data. 5 fields per line. The first section is numerical, the second is a password field, the last two are numerical representations of user level. Example would be:
; Comments
; Comments
; Comments
123456 password 12 12
234567 abcdef 3 2
as I said, each new line is different all the way to the end. I want to take this info and check it against a database, then either do nothing or update the file. Any suggestions on where to start?