Thread: Need Assistance for .txt or .csv Processing

  1. #1
    Registered User
    Join Date
    Jan 2010
    Posts
    2

    Question Need Assistance for .txt or .csv Processing

    I'm an engineering instructor here in the Philippines and an honest newbie in C programming. I wish to make a C program that will meet the following requirements to make computation of grades convenient, however I just know the basic constructs and sad to say I haven't gotten very far. I'm not expecting complete codes but walkthroughs / or algorithms will do and I'd be grateful if necessary functions to be used will be named

    here are the details:
    input - a (*.txt) or *(.csv) file having the format, (<name>,<raw score>)
    output - a (*.txt) or *(.csv) file having the format, (<name>,<transmuted/reference score>)

    here are other optional things that would be helpful:
    - my machine and c compiler is in linux (interop issues might arise?)
    - it would be helpful if the location of the input/output file and the executable file is the same
    - reference for transmuted values is also "external" to the program (i.e.also a textfile or comma separated)
    - the program should cater to multiple inputs (i.e., "names" and "raw scores")

    your detailed help will be much appreciated. please PM me or reply to this post if you have handy tips and tricks for me to complete this "ambitious project" of mine. I'd be more than happy to show you around Manila or Boracay if you happen to drop by the Philippines anytime. thanks in advance.

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,667
    A development process

    - start by reading the file in, the writing it back out unchanged
    - then tokenise it, with debug messages like "Found token 1=Fred"
    - then ....
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jan 2010
    Posts
    2
    thanks salem, the link you posted was of great help especially the tokenizing process you were talking about. i'll let you know of my progress. thanks again! appreciate it!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading from a .csv file.
    By Swerve in forum C++ Programming
    Replies: 3
    Last Post: 11-12-2009, 11:48 PM
  2. Sub Array Processing
    By GCNDoug in forum C++ Programming
    Replies: 8
    Last Post: 11-28-2007, 04:41 PM
  3. emailing - auto update of address book from .csv
    By henryzhang in forum C++ Programming
    Replies: 2
    Last Post: 04-04-2006, 06:34 AM
  4. Using a lot of processing time!
    By nickname_changed in forum C++ Programming
    Replies: 0
    Last Post: 09-25-2003, 03:44 AM
  5. file writing crashes
    By test in forum C Programming
    Replies: 25
    Last Post: 08-13-2002, 08:44 AM

Tags for this Thread