Thread: column data read in

  1. #1
    Unregistered
    Guest

    Question column data read in

    I have two columns of data in a file. I want to read them in two different variables.

    v1 v2 <-- this is just describing which
    variables I want the columns assigned to.

    2.567 2.57
    23.67 4.67
    2.567 7.89

    fscanf(output,"%f, %f", &v1, &v2);


    would this fscanf statment read them in correctly?

  2. #2
    Registered User The Dog's Avatar
    Join Date
    May 2002
    Location
    Cape Town
    Posts
    788
    I don't see why not.

  3. #3
    TK
    Guest
    double dArray[rows][columns];

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Read data from my .txt?
    By Mech0z in forum C++ Programming
    Replies: 3
    Last Post: 05-29-2006, 09:55 AM
  2. I need help as soon as possible.
    By hyrule in forum C++ Programming
    Replies: 7
    Last Post: 11-09-2005, 05:49 PM
  3. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM
  4. Warnings, warnings, warnings?
    By spentdome in forum C Programming
    Replies: 25
    Last Post: 05-27-2002, 06:49 PM
  5. gcc problem
    By bjdea1 in forum Linux Programming
    Replies: 13
    Last Post: 04-29-2002, 06:51 PM