Ok, I think I am getting somewhat closer and getting the general concept of fscanf(). Here is my latest attempt, I am getting 0 errors but 5 warnings. Warnings such as firstname isn't intialized, last name isn't intialized and "incompatible types - from 'FILE *' to 'const char *'. Also, nothing prints to the screen. The console opens but I get nothing...
Am I close? Thanks again...
*EDIT* I realized I needed to turn firstname, lastname into arrays. Not a single char. So now it prints, but it is printing weird symbols, not what is on the file...
Code:
#include <stdio.h>
#include <string.h>
int main()
{
char firstname [50];
char lastname [50];
float q1,q2,q3,q4,mid,final;
FILE *fp;
char my_filename_input[] = "C:\\Documents and Settings\\xxxx\\Desktop\\Final_Input.txt";
fp=fopen (my_filename_input, "r");
fscanf (fp, "%s, %s, %f, %f, %f, %f, %f\n",firstname,lastname,&q1, &q2, &q3,&q4,&mid,&final);
printf (fp, "%s %s %f %f %f %f %f", firstname,lastname,q1, q2, q3,q4,mid,final);
}