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
Post a Comment