//I made a program as below #include<iostream.h> #include<stdio.h> #include<fstream.h> void main() { char name[24]; cout << "enter string :"; gets(name); ofstream fout; fout.open("bin_data", ios::out|ios::binary); fout.write((char*)&name, 10); fout.close(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)