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 ?

15th Dec 2018, 4:43 PM
SIMO
SIMO - avatar
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.
15th Dec 2018, 4:48 PM
Zeke Williams
Zeke Williams - avatar