Reading file ,passing contents to array accessing contents
Hi,
I want to read a file ,which has some data as its contents. I have managed to read the file but not explicit values.
I want to store each data in an array (leaving out spaces or other characters #$?//) and access these contents and assign them later on in my program to some variables.
Any ideas?
I have a file with values 1 2 3 4 5 and so on. How can I read them, store them and then access them ?
It might be a no-brainer but i'm stuck.
cheers

robin 0186 reputationPosted Nov 23, 2004, 12:42 AM EST
cockney7 reputationPosted Nov 23, 2004, 2:40 AM EST
cockney7 reputationPosted Nov 23, 2004, 2:45 AM EST
robin 0186 reputationPosted Nov 23, 2004, 11:02 AM EST
cockney7 reputationPosted Nov 24, 2004, 2:24 AM EST
robin 0186 reputationPosted Nov 27, 2004, 2:25 AM EST
robin 0186 reputationPosted Nov 27, 2004, 2:26 AM EST