Conversion of .txt into.dat
<p>I have a txt(ascii) file but i wish to convert this file into binary (dat) file using c++ but i am very new in c++ programming.so I juct opend my 2 files:myBinaryfile and myTxtFile but I don't know how to write those data into new dat file.so i want to write a c+ codes that takes in an input containing ascii(.txt) file, and converts it to binary .dat in an output file and vice verse. </p>
