Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Importing Ints

Author
Message
MPQC
14
Years of Service
User Offline
Joined: 7th Sep 2009
Location:
Posted: 10th Jul 2010 06:02
Well. I'm trying to open a text file through db, and I've used the dbOpenToRead to open up the file. Now, in this text file, are small integers. (Around 0-25). Each of these ints are lined up side by side, then row by row. So a quick example:

0 1 2 3
4 5 6 7
8 9 1 2

Which command checks for next line, and which command would I use to store the ints?
puppyofkosh
17
Years of Service
User Offline
Joined: 9th Jan 2007
Location:
Posted: 10th Jul 2010 17:45 Edited at: 10th Jul 2010 17:46
I'd suggest using the fstream, then to read you can use the ifstream class.

Using fstream to store the ints, all you'd have to do is




If you want to do it line by line you could use something like


Login to post a reply

Server time is: 2024-07-04 10:05:01
Your offset time is: 2024-07-04 10:05:01