0
How can i save the console text ?
i'm a c++ newbie and i'm wondering if there's any way to save the compiler's console text into a text file on my desktop ?
1 Resposta
+ 4
You can! I'm not sure how you would do it using an IDE other than running the program and then copy-pasting the output into a txt file.
If you're running the program from the console using gcc, it would look something like this:
g++ main.cpp -o main.out
./main.out > file.txt
If you have more questions let me know.