Linked Questions

53 votes
9 answers
154k views

Pretty self-explanatory, I tried google and got a lot of the dreaded expertsexchange, I searched here as well to no avail. An online tutorial or example would be best. Thanks guys.
zkwentz's user avatar
  • 1,115
31 votes
4 answers
55k views

I would like to know how can I use 2 or more delimiters in the getline functon, that's my problem: The program reads a text file... each line is goning to be like: New Your, Paris, 100 CityA, ...
user avatar
7 votes
3 answers
10k views

What is the best way to read in a tab delimited file in C++ and store each line as a record? I have been looking for an open source library to help with this, but have been unsuccessful so it looks ...
Mr. Will's user avatar
  • 2,308
7 votes
1 answer
66k views

Hi I need to read a file that looks like this... 1|Toy Story (1995)|Animation|Children's|Comedy 2|Jumanji (1995)|Adventure|Children's|Fantasy 3|Grumpier Old Men (1995)|Comedy|Romance 4|Waiting to ...
weeo's user avatar
  • 2,889
4 votes
3 answers
13k views

I tried looking up what I'm trying to do but I cant find specifically what I'm trying to do. I have a text file with multiple lines that look like this: 12345,12345,12.34,12345,12345 It's the same ...
Arubix's user avatar
  • 61
0 votes
2 answers
16k views

I have a csv file with the following information on each line: John,Doe,17 The ifstream object name is inFile and I tried: string firstName; string lastName; int age; inFile >> firstName >&...
D. Lin's user avatar
  • 11
3 votes
4 answers
1k views

Sorry if it's just pure stupidity but I'm stuck at a file reading problem via C++. This is the CSV data that I'd like to read: 5;1;0;3;3;5;5;3;3;3;3;2;3;3;0 5;1;0;3;3;5;0;3;3;3;3;2;0;0;3 5;1;1;3;3;0;...
Rebecca's user avatar
  • 459
0 votes
2 answers
9k views

I have a .csv file which contains only two columns with names and ages of people. It looks like: Name Age Peter 16 George 15.5 Daniel 18.5 I would only like to collect the ages of the ...
rado's user avatar
  • 399
1 vote
2 answers
3k views

I have a huge file to parse. Previously, it was separated by either space or comma and I used sscanf(string, "%lf %lf ", &aa, &bb); to get the data into my program. But now the data ...
KuN's user avatar
  • 1,211
1 vote
1 answer
6k views

I have a file with 198 (however it could at any point be between 0-200) lines. Each line of my file looks like this: Urdnot Wrex,2.75,198846.13 Urdnot Bakara,3,189484.84 Hannah Shepard,1.75,188145.14 ...
Levi Pawlak's user avatar
0 votes
1 answer
5k views

Possible Duplicate: CSV parser in C++ Hello, I want to read a csv file into an 2D array in c++. Imagine my csv file is: a,b,c d,e,f Will someone help me to make of this a 2x3 table? Thanks,
andre de boer's user avatar
0 votes
2 answers
2k views

The numbers I have to read from the file look like this: 1,5,26,3,86,35 I managed to read each number seperately, but my problem is with numbers that are more than one digit. eg 26 or 86. How can I ...
Amorette Snyman's user avatar
-3 votes
1 answer
1k views

I've been struggling with parsing a csv file so that every new line is read as a new row. Unfortunately, I couldn't find an answer in the SO forums that addressed my problem. I opened the csv file ...
I Like's user avatar
  • 1,867
1 vote
1 answer
2k views

I am having a csv file which I converted from .mat file and the size of the CSV file is 10161 and the it is stored in 10161 rows and 1 column. I can extract the csv files when they are in 10161 ...
hawkeye's user avatar
  • 349
1 vote
1 answer
2k views

I have a csv file with an 5 columns and 100 rows. My objective is to load the file into a vectorData #include <iostream> #include <fstream> #include <string> #include <vector>...
user1251268's user avatar

15 30 50 per page
1
2 3 4 5
18