How to read a specific content and output in differ way?

This is a discussion on How to read a specific content and output in differ way? within the C++ Programming forums, part of the General Programming Boards category; C++>>How do I read a specific content from a file and output it in differ way? find the below content ...

  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    1

    How to read a specific content and output in differ way?

    C++>>How do I read a specific content from a file and output it in differ way?

    find the below content in a file
    Chain: c1
    Scan In: datai[0]
    Scan Out: tdo
    Length: 984

    and output as

    ScanChain "c0" {
    ScanLength 984;
    ScanIn "tms";
    ScanOut "crcerror";
    Anyone can give me some ideas?
    Last edited by cr7tiano; 07-05-2010 at 11:45 PM.

  2. #2
    Woof, woof! zacs7's Avatar
    Join Date
    Mar 2007
    Location
    Australia
    Posts
    3,459
    By parsing the input... Based on the input, you seem to have some magical output though.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 6
    Last Post: 04-17-2009, 05:41 PM
  2. Replies: 4
    Last Post: 04-03-2007, 06:57 AM
  3. Printf Output Confusion
    By simpleid in forum C++ Programming
    Replies: 2
    Last Post: 11-16-2006, 11:36 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21