Instead of printing in CMD can print out in .css/.txt?

Aug 13, 2014 at 7:14am
Hi, I have previous threads asking how to make a list of words that were matched up be printed out into a .css or .txt but haven't had any help yet. So I thought of another idea that might help me.

Is there anyway to make the words being printed out in CMD after debugging/compiling a script printed out in a .txt/.cpp file instead? CMD only has 300 lines. I need the outcome to be printed out elsewhere so more lines can be posted rather than 300.

Aug 13, 2014 at 7:54am
I messed around with it and couldn't quite get what I wanted. Not to mention by the time the script is done debugging and you press a key the CMD closes. :x
Aug 14, 2014 at 1:52pm
still haven't figured this out
Aug 14, 2014 at 2:04pm
$ ./your_program.exe > output_file.txt
Aug 14, 2014 at 2:27pm
I have no clue where to put that or what to do with it. I'm sorry and I understand that might be basic stuff. However, I am not familiar with C++ at all.
Aug 14, 2014 at 3:47pm
open a console (cmd.exe)
go to the path where your executable is (cd)
write that command
Aug 14, 2014 at 4:03pm
The only reason I'm trying to do this is because the code I have for c++ doesn't print out text into an output.txt file.

It creates it if it doesn't exist but only prints things out in CMD. The output.txt file stays empty.

Why isn't the words being written there?
Aug 14, 2014 at 4:09pm
Solved!
Last edited on Aug 14, 2014 at 4:44pm
Topic archived. No new replies allowed.