So i'm playing around with C and I fancied creating an assembler as a little side project.
I'm going to pull in text, in machine simple format from files in the directory. I want to separate my instructions with whitespace aka one space.
Now I was thinking of scanning the file with fgetc to scan each char at a time until it hits whitespace. That said, i'm having alot of issues with it. As in how do I hold and now work with that part of the text, how to ioi progress to the next part after the space etc.
Have I got the right idea? How would you do it?