title: Need Convert Binary file to Txt file
body: <p>I have a dat(binary) file but i wish to convert this file into Ascii (txt) 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 read data from that dat file and then how to write those data into new txt file.so i want to write a c+ codes that takes in an input containing binary dat file, and converts it to Ascii txt in an output file. if this possible please help to write this codes. thanks</p>
  
  <p>Sorry for asking same question again but still I didn’t solve my problem, I will explain it more clearly as follows: I have a txt file called “A.txt”, so I want to convert this into binary file (B.dat) and vice verse process. Two questions:
  1.  how to convert “A.txt” into “B.dat” in c++
  2.  how to convert “B.dat” into “C.txt” in c++ (need convert result of the 1st output again into new ascii file)</p>
  
  <p>my text file is like (no header):</p>
  
  <p>1st line: 1234.123 543.213 67543.210 1234.67 12.000
  2nd line: 4234.423 843.200 60543.232 5634.60 72.012</p>
  
  <p>it have more than 1000 lines in similar style (5 columns per one line).</p>
  
  <p>Since I don’t have experiences in c++, I am struggle here, so need your helps. Many Thanks</p>