Click here to Skip to main content
15,887,175 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
GeneralRe: create copy of a hashtable... Pin
S. Senthil Kumar22-Feb-05 18:07
S. Senthil Kumar22-Feb-05 18:07 
GeneralLoading Assembly from a Web Service Pin
Vadim Tabakman21-Feb-05 18:29
Vadim Tabakman21-Feb-05 18:29 
Generalwindows application write to console Pin
krealiza21-Feb-05 16:42
krealiza21-Feb-05 16:42 
GeneralRe: windows application write to console Pin
Rei Miyasaka22-Feb-05 17:35
Rei Miyasaka22-Feb-05 17:35 
GeneralRe: windows application write to console Pin
krealiza22-Feb-05 17:57
krealiza22-Feb-05 17:57 
GeneralRe: windows application write to console Pin
Rei Miyasaka22-Feb-05 18:00
Rei Miyasaka22-Feb-05 18:00 
GeneralRe: windows application write to console Pin
krealiza22-Feb-05 18:13
krealiza22-Feb-05 18:13 
GeneralRe: windows application write to console Pin
Rei Miyasaka22-Feb-05 18:40
Rei Miyasaka22-Feb-05 18:40 
Compile this as a console program, call it "dump.exe" maybe.

<br />
using System;<br />
using System.IO;<br />
<br />
namespace Dump<br />
{<br />
	class Class1<br />
	{<br />
		[STAThread]<br />
		static void Main(string[] args)<br />
		{<br />
			char[] buffer = new char[512];<br />
			int len;<br />
			while((len = Console.In.Read(buffer, 0, 512)) != 0)<br />
				Console.Write(buffer, 0, len);<br />
		}<br />
	}<br />
}<br />
<br />


When you call your program from the console, call it up like this: my_app -e somefile.txt | dump. This pipes the console output to dump.exe, which in turn displays it to the console.

Or, rather than using that dump program, you can use more like this: my_app -e somefile.txt | more. The problem with this, though, is that it stops and waits for you to hit a key once it fills up the buffer.

If you just want to dump the Console output to a file, you can say my_app.exe -e somefile.txt > consoleoutput.txt.
GeneralWebService Ticks must be between Pin
Vadim Tabakman21-Feb-05 14:54
Vadim Tabakman21-Feb-05 14:54 
GeneralCan't see anything (DirectX) Pin
truonghongquan21-Feb-05 14:41
truonghongquan21-Feb-05 14:41 
GeneralRe: Can't see anything (DirectX) Pin
truonghongquan1-Mar-05 15:04
truonghongquan1-Mar-05 15:04 
GeneralInstaller Files (prevent overwrite) Pin
swcrissman21-Feb-05 10:52
swcrissman21-Feb-05 10:52 
GeneralRe: Installer Files (prevent overwrite) Pin
rwestgraham23-Feb-05 13:32
rwestgraham23-Feb-05 13:32 
GeneralRe: Installer Files (prevent overwrite) Pin
swcrissman25-Feb-05 10:57
swcrissman25-Feb-05 10:57 
General.net Remoting Question Pin
occcy20-Feb-05 22:23
occcy20-Feb-05 22:23 
GeneralRe: .net Remoting Question Pin
S. Senthil Kumar21-Feb-05 15:23
S. Senthil Kumar21-Feb-05 15:23 
GeneralSocket polling Pin
Magnus2720-Feb-05 7:44
Magnus2720-Feb-05 7:44 
Questiondeploy without .net framework? Pin
Hadi Fakhreddine19-Feb-05 12:05
Hadi Fakhreddine19-Feb-05 12:05 
AnswerRe: deploy without .net framework? Pin
Rob Graham19-Feb-05 12:17
Rob Graham19-Feb-05 12:17 
GeneralConfused with viewing IL Pin
Andres Coder19-Feb-05 9:41
Andres Coder19-Feb-05 9:41 
GeneralRe: Confused with viewing IL Pin
Rob Graham19-Feb-05 9:57
Rob Graham19-Feb-05 9:57 
GeneralRe: Confused with viewing IL Pin
Andres Coder19-Feb-05 10:28
Andres Coder19-Feb-05 10:28 
GeneralRe: Confused with viewing IL Pin
S. Senthil Kumar19-Feb-05 12:14
S. Senthil Kumar19-Feb-05 12:14 
Generaluser controls dissapear Pin
netsu19-Feb-05 1:16
netsu19-Feb-05 1:16 
GeneralDotNet Fx1.1 Sp1 Issue :- Need Urgent help !! Pin
jk chan17-Feb-05 20:06
jk chan17-Feb-05 20:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.