io - how to download just one part of a txt file in java? -


is possible download first 50 lines of .txt file in java? if possible, i'd need solution without external libraries, compatible java 5 , simple possible (involving lines of text rather streams... 1 can dream!)

certainly it's possible, read first 50 lines , stop reading.

you can't without streams, since that's happen underneath anyways, regular new bufferedreader(new inputstreamreader(inputstream, "utf-8"))); (select proper encoding) work fine.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -