Thread: getting numbers from a txt file and performing calculations?

  1. #1
    Registered User
    Join Date
    Dec 2008
    Posts
    4

    getting numbers from a txt file and performing calculations?

    k so I got a txt file with a table that looks like:

    header1 header2 header3 header4 header5 header6 header7
    num1 num2 num3 num4 num5 num6 num7
    -
    -
    num35 num36 etc.



    so I was wondering if someone could point me in the right direction by giving me an idea about what I should read about to achieve this

    my goal is to be able to print this out to the win commandline window with both the headers and the calculated numbers appearing under the correct header.
    .
    thank you in advance.

  2. #2
    and the Hat of Guessing tabstop's Avatar
    Join Date
    Nov 2007
    Posts
    14,336
    What is the trouble? You can read up on how to read from files, I guess -- we have an FAQ about it.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Performing File operations using File Inode number
    By rak1986 in forum C Programming
    Replies: 4
    Last Post: 09-22-2008, 02:43 AM
  2. Totally confused on assigment using linked lists
    By Uchihanokonoha in forum C++ Programming
    Replies: 8
    Last Post: 01-05-2008, 04:49 PM
  3. Replies: 1
    Last Post: 08-31-2004, 04:07 AM
  4. performing a search-and-replace operation on a file
    By dakolmon in forum C++ Programming
    Replies: 2
    Last Post: 05-11-2004, 10:58 AM
  5. How to sum up each column of matrices
    By tennizbal in forum C++ Programming
    Replies: 5
    Last Post: 04-16-2003, 11:26 AM