I need to convert an ascii file to binary. Essentially just reading in the ascii data and printing it out to another file in binary. I don't know where to start with the conversion. I have searched through other threads and sites and I find the information either confusing or contradictory.

I am reading and writing the files normally, it's just the conversion I need help with so... Please Help!

Thanks!