Forum: C++ Jul 26th, 2006 |
| Replies: 4 Views: 14,503 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. ifstream file(filename);
if (file)
{
char ch ;... |
Forum: C++ Jul 26th, 2006 |
| Replies: 2 Views: 10,448 Yes, it working fine for me! Thanks |
Forum: C++ Jul 26th, 2006 |
| Replies: 2 Views: 10,448 Hi
I need to cast string type variable to LPCTSTR type. How to achieve this. I am inserting my code for yours help.
ifstream file(filename);
if (file)
{
char ch='\n' ;
do
{... |
Forum: C++ Jul 15th, 2006 |
| Replies: 16 Views: 21,993 Yes, Now its working fine for me. Thanks, for solving my problem........ |
Forum: C++ Jul 14th, 2006 |
| Replies: 16 Views: 21,993 Yes, you have posted a good class but can u give main() function code also, how to call the class and which member function. Means how to read the file (.CSV) and pass in the object of class and get... |
Forum: C++ Jul 14th, 2006 |
| Replies: 16 Views: 21,993 I am able to read the .csv file into a char array but unable to parse the same.
can u give send me some code how to seperate the contents from commas. |
Forum: C++ Jul 14th, 2006 |
| Replies: 16 Views: 21,993 I am using C++. Actually after parsing i have to use it to show in a List Control in my MFC application. |
Forum: C++ Jul 14th, 2006 |
| Replies: 16 Views: 21,993 |
Forum: C++ Jul 14th, 2006 |
| Replies: 16 Views: 21,993 Extent of CSV format is like
"Ted Morris, 121 street Name, Washington,(123)123344,(12)12322"
"John Peter, 123 Mango, Texas, (232)333523,(23)34355"
....................................... |
Forum: C++ Jul 14th, 2006 |
| Replies: 16 Views: 21,993 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... |