i have a file from which i have to read and compute the total value of all items,i dont know what methodto use to read arrays
i tried DataInputStream(object).readInt(quantity[]); but it says it is wrong
can any one help me in reading from the file and computing the total value of all the items
the code is as follows
Use the BufferedReader class with stultuske's code. This class contains the readLine() method you need
should we not use buffered reader for reading character,i have used datainput and dataoutput stream to read and write primitive data type.
if i am wrong correct me
No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.