Hi, im developing this program, and then i ran into some trouble "oooh
no!" hate to ask.. have search google and this page for something to
spilt things up in arrays or whatever can be used, spent my half day
trying to find a solution, but nothing :( then i agreed with my self
that i have to ask. So her's the question/problem.
Link to project:
I have a data file called "data", it contains:
timer: 1928384938485
total: 119283
drink: 10.5
Then in my sourcecode i've made a piece of code that reads the "data"
file and prints it out through a string. Now what i want this program
to do, is to take the value of fx.. "timer: " which is "1928384938 485"
into a integer so i can do something with it :) Can someone suggets how
i can do this..?
btw. my english i not so good since im from denmark :D
Thanks for help, if something ;)
no!" hate to ask.. have search google and this page for something to
spilt things up in arrays or whatever can be used, spent my half day
trying to find a solution, but nothing :( then i agreed with my self
that i have to ask. So her's the question/problem.
Link to project:
I have a data file called "data", it contains:
timer: 1928384938485
total: 119283
drink: 10.5
Then in my sourcecode i've made a piece of code that reads the "data"
file and prints it out through a string. Now what i want this program
to do, is to take the value of fx.. "timer: " which is "1928384938 485"
into a integer so i can do something with it :) Can someone suggets how
i can do this..?
btw. my english i not so good since im from denmark :D
Thanks for help, if something ;)
Comment