Deleting line from console

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

Is there any way to delete a line from the console with the System.Console
object?

Cheers.
 
Nop,

Once it's written there is nothing you can do about it, you could just clear
it though.

cheers,
 
JSheble said:
I did, and it provided nothing in C# to clear the screen. The first
example of system("cls") does nothing (won't even compile), and the second
example includes references to a whole slew of functions that doesn't
exist in C#...

Which is quite normal as the samples are C code not C#. Anyway they might
give you some ideas what you could do when calling these API's using
PInvoke.



Willy.
 
JSheble said:
I did, and it provided nothing in C# to clear the screen. The first example
of system("cls") does nothing (won't even compile), and the second example
includes references to a whole slew of functions that doesn't exist in C#...

Hi again,

I did another search with some different keywords in different places
and this time I found a real working C# solution for your problem here:
http://support.microsoft.com/default.aspx?scid=kb;en-us;319257

HTH ;-)
 
Back
Top