0

I have a program in c#(.net). The program has a simple function and is suppose to write out the result in a HTML document. I have a HTML code inside the program (all code is inside console.writeline). It works when I run it in the command window. But the project is to print out the result in a HTML file.

I was given an example of a command line:

*Nameofproject*.exe 5 > Result.html

Can anyone help me figuring this out?

user3265963
  • 273
  • 3
  • 11
  • 18

1 Answers1

0

here's how to do it with a text file: How to save Console.WriteLine output to text file? and here C# How to save Console.Writeline Outputs to HTML Format? html should be the same thing.

Community
  • 1
  • 1
Ruben Verschueren
  • 822
  • 13
  • 28