- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
I am reading a CSV file and parsing its content into tokens. Now i want to know how to check for End of File. I am giving my code to be more clear. [CODE][COLOR=#0000ff]ifstream file(filename); if (file) { char ch ; do { file.getline(line, SIZE); tmp =static_cast<string>(line); vector <string> array; … |
|
Hi I need to cast string type variable to LPCTSTR type. How to achieve this. I am inserting my code for yours help.[code] [COLOR=#0000ff] ifstream file(filename); if (file) { char ch='\n' ; do { file.getline(line, SIZE); tmp =static_cast<string>(line); vector <string> array; string token; // token decleared string type istringstream iss(tmp); … |
|
Hi friends, Its my first experience to this forum. can any one help me in reading a csv file into an array and then parse each word seperated by commas. I have csv file which contains rows and columns of record. and i have to read the file into an … |