Search:

Type: Posts; User: bojomojo

Search: Search took 0.00 seconds.

  1. yes, I am having troubles understanding fscanf ...

    yes, I am having troubles understanding fscanf

    how can I use fscanf to read name, age, school ...etc

    I understand if I use:

    fscanf(fp, "%s", str);

    it will read the whole line and store it...
  2. Read values from txt file and store them in structure

    Hello,

    If I have a text file with the format:


    Name = MattPhilip
    Age = 22

    how can I use C to read from the file and fill in a structure?
Results 1 to 2 of 2