Jump to content

dev_tyagi

Member
  • Posts

    1
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    India

About dev_tyagi

dev_tyagi's Achievements

0

Reputation

  1. Hi to all i m having problem in reading a unicode string from a unicode formatted file can any one direct me how to read a string till a given delimenator the code i m writing is char buffer =new char[2500]; memset(buffer,'\0',strlen(buffer)); fstream fp,fp1; fp.open("c:\\filedata1.txt",ios::in); if (!fp.is_open()) { cout << "couldn't open file" << endl; exit(3); } else while(!fp.eof()) { fp.getline(buffer,2500,'¶'); fp1.open("c:\\notfounddata2.txt",ios::out); fp1.write(buffer,2500); cout<<buffer; memset(buffer,'\0',strlen(buffer)); } fp.close(); fp1.close(); }
×
×
  • Create New...