Re: Speeding java I/O



"ramya" <ramyaraghukumar@xxxxxxxxx> wrote in message
news:1148948660.073503.60390@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
hi,

I am doing file reading with java. It is slow. I tried using
BufferedReader but still I don't find any improvement. Is there
anything better I could do? Please give your suggestions.

Andrey already said it - define "slow". Could you post your code, so we can
see what exactly you are doing?

For example, if you're reading one byte at a time, then yes, the result will
be slow...

Best regards,

JayCee
--
http://jcsnippets.atspace.com/
a collection of source code, tips and tricks


.



Relevant Pages

  • Re: Reading file using Java
    ... Hyden Zeng wrote: ... > got one question regarding file reading. ... > How do I directly access a certain byte or line of a file using Java? ...
    (comp.lang.java.programmer)
  • Re: file reading in java
    ... > i have a problem with file reading in java... ... Maybe your path is incorrect relative to the working directory? ... make sure the user under which your servlet engine runs has ...
    (comp.lang.java.programmer)
  • Reading file using Java
    ... got one question regarding file reading. ... How do I directly access a certain byte or line of a file using Java? ... the time complexity should be O. ...
    (comp.lang.java.programmer)