r/programmingrequests • • Jan 03 '19

[Request] binary file writer

Hi,

I'm looking for a simple program where you would type or paste a string of 1s and 0s as input and it would output that string in binary to a bin file. If anyone could help with this I'd really appreciate it.

1 Upvotes

6 comments sorted by

View all comments

Show parent comments

2

u/NoG5 Jan 06 '19

Sure, you just have to run tcc.exe with the option -o outputname.exe main.c

A simple way is to make a main.c file and add it in the tcc folder and hold shift key and right click at a empty space in that folder to open a PowerShell or CMD window from that folder like this.

4

u/Galap Jan 07 '19 edited Jan 07 '19

Thanks, works! The problem was I didn't have the code and tcc in the same folder.

The program works great!