Re: Reading data into an Array
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Tue, 3 Jul 2007 17:23:46 -0400
<christopher_board@xxxxxxxxxxx> wrote in message
news:1183412146.507512.51230@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
The program has a text file stored somewhere on the computer which the
program will read. The file will have a long list of numbers inside
the file which may look something like this 49175630573014302316. The
file is read in once at the launch of the program. To save process
power of the computer I only want the file to be read in once. I
thought an Array would be best to do this but I am not sure as I am a
novice to java. I won't know how big the file is, it could be smaller
or larger. There will be a list box that will only display part of the
data for examble if the file reads something like 4917563057301430.
Then the list box will only display every other 2 numbers for example
in this example it would only show 17,30,30,30.
Sorry if this is not clear it is quite hard to explain what the
program is going to do the file.
Any help in what would be the best way in order to do this would
highly appreciated.
Thanks for any help that you can give me in this matter.
If this is all that the program does, then I'd forget about the array
altogether, and just read the file, character by character, and store
every other pair of characters in the listbox.
- Oliver
.
- References:
- Reading data into an Array
- From: christopher_board
- Re: Reading data into an Array
- From: Roedy Green
- Re: Reading data into an Array
- From: christopher_board
- Reading data into an Array
- Prev by Date: Project layout
- Next by Date: Re: decimal to binary converter - java
- Previous by thread: Re: Reading data into an Array
- Next by thread: Explain about JSP paging. and how can u create it
- Index(es):
Relevant Pages
|