Read in from a file with specific syntax …

Home Forums C Programming Read in from a file with specific syntax …

This topic contains 1 reply, has 2 voices, and was last updated by  Humayan 10 years, 9 months ago.

  • Author
  • #2044


    Hello, thank you for taking the time to review my problem. I’m trying to read in from a file which has specific syntax (shown below) and recognize part1 and part2. It should compare part1 with an internal value to be returned from later code. In short:
    The file will consist of the following:
    I need to read each line and recognize part1 as a variable and part2 as a variable (seperated by the colon, which is to be ignored). If I can get that working, I have the rest sorted out (i think). All feedback is greatly appreciated!!

  • #3292


    Heres an old program that I have that reads an int then a float on each line:

You must be logged in to reply to this topic.