Skip to content
Sign upLog in
← Back to Community

Download generated file

Profile icon
Andrea_del_Pila

Hi!
My C++ code produces a binary file when I run it, however I'm unable to download that file because it didn't appear in the left panel. How could I get that file?
Thanks!

Answered by CodeLongAndPros [earned 5 cycles]
View Answer
Voters
Profile icon
MUKULAlam
Profile icon
JakubSiewierski
Profile icon
AtriDey
Profile icon
Andrea_del_Pila
Comments
hotnewtop
Profile icon
CodeLongAndPros

Enter these commands into the shell:

mv main* [your prog name]

Where [your prog name] is the name of the program
Do note that this binary was compiled for Linux, and so it may not run on Windows.

Profile icon
Andrea_del_Pila

@CodeLongAndPros
thanks for the message. However, I'm not interested in downloading the precompiled binary file. The program writes a new binary file with some important information that I need to download, but after the execution of the program, even though the file appears with an ls command in the shell, it didn't appear in the left panel where all project files are.

Profile icon
CodeLongAndPros

@Andrea_del_Pila Oh, I thought you were talking about the program.

You should then make an empty file with the name you want, or use the terminal to push to a remote git repo.

Profile icon
Andrea_del_Pila

@CodeLongAndPros
Thanks! I have pushed it in my git repository, and now I'm able to open it.

Profile icon
CodeLongAndPros

@Andrea_del_Pila Glad you got it worked out.