CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Oct 2001
    Posts
    65

    Output Too Quick

    Hi,

    I have this program which is outputing to an MS-DOS prompt.

    There are pages of output and I need to read the ouput right at the beginning.

    Thus, is it possible to get the output to pause at the end of each page or is there a way of making 'printf' automatically ouput to a file?

    Thanks,

    VF


  2. #2
    Join Date
    Dec 2001
    Posts
    191

    Re: Output Too Quick

    pipe it to more
    eg

    dostuff | more




  3. #3
    Join Date
    Jan 2002
    Location
    China
    Posts
    6

    Re: Output Too Quick

    yeah, I want to know this too.
    Does the key"Pause" used here ,I had not tried it yet;

    I will fly in the sky......

  4. #4
    Join Date
    Oct 2001
    Posts
    65

    Re: Output Too Quick

    Cheers for the reply.

    I tried adding ' | more ' to the end but the program thought that 'more' was a parameter.

    Oh well, I got hold of the source code and halted the program with 'cin >> x'.

    VF.


  5. #5
    Join Date
    Nov 1999
    Location
    Copenhagen, Denmark
    Posts
    265

    Re: Output Too Quick

    Did you try:

    C:\>yourexe > somefile
    C:\>notepad somefile

    Regards,
    S. Bro




    /* I would be happy to deal with my problems one at the time if they would only line up! */




    MSDN:
    http://search.microsoft.com/us/dev/default.asp

    WIN 32 Assembler:
    http://board.win32asmcommunity.net/

    Best regards,
    S. Bro

    "I would be happy to deal with my problems one at the time if they would only line up!"
    -Paul Cilwa, "Borland C++ Insider".

    Other useful fora some of which I ruthlessly clipboarded from other peoples footers.

    MSDN: http://search.microsoft.com/us/dev/default.asp
    WIN 32 Assembler: http://board.win32asmcommunity.net/
    RDBMS: http://www.dbforums.com
    Robert's Perl Tutorial: http://www.sthomas.net/roberts-perl-tutorial.htm
    Merriam-Webster Online: http://www.m-w.com/home.htm
    Writing Unmaintainable Code: http://mindprod.com/unmain.html

  6. #6
    Join Date
    Oct 2001
    Posts
    65

    Re: Output Too Quick

    That's it!

    Thanks, what a guru.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured