Thread: Simple Text manipulation program

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    3

    Simple Text manipulation program

    Greetings, I don't code... but right now i wish I did

    I have this:

    1
    2
    3
    4
    5


    I need this:

    1;2;3;4;5;

    Some help would be greatly appreciated

  2. #2
    Registered User
    Join Date
    Mar 2003
    Posts
    16
    if you have the output ending with <<endl;
    remove it.
    add the ; with ";".

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    3
    Bless the power of *nix

    Salem,
    I used Cygwin for access to unix commands on my nt box, and input the command you mentioned above... but i'm getting an extra character that is acting like the [enter] key when I display the output file in a browser... attached is what the output looks like

    The result, when opened in IE, looks like this

    1
    ;2
    ;3
    ;4
    ;5
    ;


    Any ideas?

    TIA

  4. #4
    Registered User
    Join Date
    Feb 2003
    Posts
    162
    output the ";" before doing an endline

  5. #5
    Registered User
    Join Date
    Mar 2003
    Posts
    3
    thanks everybody for the input.. very much appreciated

    Salem, that command gives me "too many arguments" .. but I get the desired result in 2 passes. Not bad

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. creating very simple text editor using c
    By if13121 in forum C Programming
    Replies: 9
    Last Post: 10-19-2010, 05:26 PM
  2. Replies: 19
    Last Post: 05-30-2007, 05:47 PM
  3. Help with simple program
    By nik2007 in forum C++ Programming
    Replies: 4
    Last Post: 02-27-2006, 09:54 AM
  4. Need help with simple, simple program.
    By LightsOut06 in forum C Programming
    Replies: 5
    Last Post: 09-01-2005, 08:31 PM
  5. Help with small simple program
    By Sonor in forum C Programming
    Replies: 5
    Last Post: 04-02-2005, 07:40 AM