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

  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 10: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, 04:41 PM
  2. Replies: 4
    Last Post: 04-03-2007, 05:57 AM
  3. Printf Output Confusion
    By simpleid in forum C++ Programming
    Replies: 2
    Last Post: 11-16-2006, 11:36 AM