» Home » console » Page 1
Output/Log Console.Read & Console.Write from a Console application to a TXT/XML File C#
Category : C & C++ & C#

I have a Console application (C#) that interacts with the User, and every step is shown via Console.Writeline.

Now I wanted to write these events to XML or TXT, and my only guess was to create a List and add all the Console.Writelines to it, but then I noticed that logging the Console.Readline is mandatory, and that's the reason I'm asking this question.

How do I log Con

View Replies

(Console.BufferHeight) I can't see/scroll to see all the console output with Console.WriteLine
Category : Programming Languages

When I run this code, the number at the top of the output window is 99701. Why don't I get to see all the way through 1? I actually see all the numbers getting outputted, but on the console window, I can only SCROLL high enough to see 99701 (I'm guessing). I'm using Visual C# express on Vista Home. :D

using System;
using System.Collections.Generic;
using System.Linq;
View Replies

Netduino no “Console.WriteLine”, Console does not exist in current context
Category : Programming Languages

I cannot seem to get my very simple netduino program to write to the debug console; VS throws an error

The name 'Console' does not exist in the current context

Any ideas what might cause it to not exist?

using System;
using System.Text;
using System.Net;
using System.Net.Sockets;
using System.Threading;
using Microsoft.SPOT;

View Replies

ERROR: invalid console appender config detected, console stream is looping
Category : Development Tools & Services

I am doing a mini project using pojos & servlets . I have created a war. and placed in
jboss-4.0.5.GAserverdefaultdeploy directory. I use log4j for logging . I have removed log4j from WEB-INFlib before creating war. when I start Jboss i get

ERROR: invalid console appender config detected, console stream is looping

what to do with this .

View Replies

Flush the console screen with special unicode class workaround for windows console
Category : Programming Languages

I"m trying to make a simple text progress bar in windows console and also display utf8 characters.

The problem isn't that the unicode characters won't display, they will.
It's that in order to make the unicode characters display I used a class to tell sys.stdout what to do. This has interfered with the normal flush() function.

How can I get this flush() funcionality

View Replies

Execute console applications without creating a new console window flickering on the screen (C++, Windows)
Category : Programming Languages

I'm writing a windows application and I needs to run some console applications from it and get their output. I tried two different approaches:

1) Using _popen(command, "rt")
2) Creating a child process with redirected output (CreateProcess(), CreatePipe())

They both work but during the execution of some command a new console window is created and it's very unpleasan

View Replies

Rails console vs MySQL console - Counting rows in a huge table
Category : Databases

I'd like to show a graph on how many records a table has, for the last 30 days. I'm going to do a rake task that I will run each day from a cron job.

I just made a test, and I found a weird "issue".
I ran this code in the Rails console:

#=> (57135.2ms) SELECT COUNT(*) FROM `seen_episodes`

I then tested this in the M

View Replies

Difference in state in Console App between Console.Readline() and setting a break point
Category : Programming Languages

The following code behaves strange and I try to understand why:

EmbeddableDocumentStore db = new EmbeddableDocumentStore();
db.DataDirectory = @"C:Google DriveTradingFrameworkRavenDatabase";
db.UseEmbeddedHttpServer = true;
bool halt = true;
Console.WriteLine("Read to try ser

View Replies

Nice implementations of Console.WriteTable(DataTable), Console.WriteList(LIst)
Category : Programming Languages

Are there any implementations to display nicely table or list data in c# console app like say in PowerShell?
Upd. Maybe third side or any?

View Replies

Alternatives to Console.Writeline() for printing debug information from a console application?
Category : Programming Languages

I have a C# console application. It is gathering info from several data sources and centralising them in another. Occasionally, it hits some bugs - connection strings stop working; schemas change etc.

At the moment, I am simply printing out debug information using Console.WriteLine(); - this is obviously an awful idea...not least because the application is a scheduled t

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .