Ok, here is a short background on my problem - I'm just finishing up my C programming class, and want to use what I've learned on a project (mainly because I'm bored.) So, there is an online game called Planetarion that I play which outputs data about each player into a large text file.
I want to write a program to search this file and output matches, etc...
Each line consists of 3 integers, followed by two strings contained in double quotes, then 2 more integers.
1 1 1 "Headquarters" "Spinner" 20 96360
example 2: 1 1 3 "Olympus House" "Your Zeus" 3 21669
Using the format parameters "%d %d %d %s %s %d %d" works fine for the first example, but when I come to the second example, you will notice the first string contains a whitespace which prompts C to read in the strings as "Your and Zeus", and then proceeds to read in the remaining string as integers, and so you can see this obviously is going to cause errors.
Therefore, my question(if you don't know it already): how do I format my input so that it will read what is enclosed in double quotes, with or without whitespace.