Problems reading from a text file
-
Hi, I have problems reading values from a text file into an array. The first problem is reading the data from the file and the other is about data type conversion. The values in a textfile are arranged vertically, like in a column: 0 1 0 1 1 0 0 1 . . and so on. There is only 1 vertical column of numbers in the textfile. I used a loop below to read the values from the file into an array: while( inClientFile >> values) //inClientFile is an ifstream object. cout<<.......<
-
Hi, I have problems reading values from a text file into an array. The first problem is reading the data from the file and the other is about data type conversion. The values in a textfile are arranged vertically, like in a column: 0 1 0 1 1 0 0 1 . . and so on. There is only 1 vertical column of numbers in the textfile. I used a loop below to read the values from the file into an array: while( inClientFile >> values) //inClientFile is an ifstream object. cout<<.......<
See this response.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week Zac