
-----------------------------------
KONjbnj
Wed Jun 08, 2005 8:31 am

Help datafile
-----------------------------------
hey..i was wondering how would u be able to make a loop so that it only reads parts of a datafile i tried exit when when it gets to a certain part but it doesnt work..i need the loop to stop at a certain point.

thanks



-----------------------------------
jamonathin
Wed Jun 08, 2005 11:40 am


-----------------------------------
Yes it is possible, you just have your coding wrong.

Take a look at these two programs.  'data' is just the text, and 'data get' gets the data.

Remove the comment to stop at hamburger.

-----------------------------------
Cervantes
Wed Jun 08, 2005 5:50 pm


-----------------------------------
Yes it is possible, you just have your coding wrong.
En contrare, I think he's got his text file wrong.  Assuming the textfile is set up in the correct format (food, price, combo, save), his code should work.
KONjbnj, would you please post the data file you were using?

-----------------------------------
Delos
Wed Jun 08, 2005 6:48 pm


-----------------------------------

"Au contraire"


-----------------------------------
KONjbnj
Thu Jun 09, 2005 8:01 am


-----------------------------------
`here is datafile

-----------------------------------
KONjbnj
Thu Jun 09, 2005 8:27 am


-----------------------------------
yay, I got it to work! thanks guys

though i dont think i did it how you guys did it.

-----------------------------------
jamonathin
Thu Jun 09, 2005 8:50 am


-----------------------------------
 I think he's got his text file wrong.

Yeah, you have to have the same casings KonJubIXoRz
