Y
yasmine
Hi - newbie programmer...
I have a text file that has numbers seperated by Tabs or Returns. I
want to read these numbers into an array.
I'm using BufferedReader, and when i read one character with
c=in.read(), then print out c, it shows a completely different number.
Using Strings readLine() will print out the integers from the file,
but i want to access each integer separatelyand put them in an Int
array...
I realise its something to do with ASCII, but I don't know and can't
find any diferent reading functions that will print out the number as
it is. I thought read() should read one character at a time?
can anone please help?
I have a text file that has numbers seperated by Tabs or Returns. I
want to read these numbers into an array.
I'm using BufferedReader, and when i read one character with
c=in.read(), then print out c, it shows a completely different number.
Using Strings readLine() will print out the integers from the file,
but i want to access each integer separatelyand put them in an Int
array...
I realise its something to do with ASCII, but I don't know and can't
find any diferent reading functions that will print out the number as
it is. I thought read() should read one character at a time?
can anone please help?