Carpenters keep moving forward

2012年11月8日星期四

Redirecting Console Outputs in Visual Studio

Instead of writing the file stream objects into your code, a simpler solution is to redirect the output just like the pipeline in Linux.

Basically, you just have to go to project properties -> Debugging -> Command Arguments, and add:
"> Output.txt".

Here is a nice post for it:
http://asawicki.info/news_1496_redirecting_output_to_file_in_visual_c.html
Posted by Lei Yuan at 12:37 没有评论:
Labels: C++, Studying...
较新的博文 较旧的博文 主页
订阅: 博文 (Atom)

博客归档

  • ►  2014 (2)
    • ►  三月 (1)
    • ►  一月 (1)
  • ►  2013 (1)
    • ►  三月 (1)
  • ▼  2012 (11)
    • ▼  十一月 (1)
      • Redirecting Console Outputs in Visual Studio
    • ►  十月 (2)
    • ►  九月 (1)
    • ►  七月 (1)
    • ►  六月 (1)
    • ►  五月 (3)
    • ►  三月 (1)
    • ►  二月 (1)
  • ►  2011 (1)
    • ►  十月 (1)
  • ►  2010 (2)
    • ►  二月 (1)
    • ►  一月 (1)
  • ►  2009 (18)
    • ►  十一月 (2)
    • ►  十月 (1)
    • ►  九月 (2)
    • ►  八月 (2)
    • ►  七月 (3)
    • ►  五月 (2)
    • ►  四月 (2)
    • ►  三月 (1)
    • ►  二月 (3)
  • ►  2008 (34)
    • ►  十二月 (1)
    • ►  十一月 (4)
    • ►  十月 (4)
    • ►  九月 (5)
    • ►  八月 (2)
    • ►  六月 (18)

Number of Views

“图片窗口”主题背景. 由 Blogger 提供支持.