bufferedreader
GZIPInputStream end-of-file sequence in BufferedReader
I use a Java BufferedReader object read, line-by-line, a GZIPInputStream that points to a valid GZIP archive that contains 1,000 lines of ASCII text, in typical CSV format. The code looks like this:[详细]
2023-03-16 02:12 分类:问答Read in N Lines of an Input Stream and print in reverse order without using array or list type structure?
Using the readLine() method of B开发者_如何学PythonufferedReader, can you print the first N lines of a stream in reverse order without using a list or an array?I think you can do it through recursion[详细]
2023-03-15 15:42 分类:问答buffered reader not receiving data from socket
I am writing a client application that will receive a continuous flow of data through tcp/ip. The problem I\'m having is that the buffered reader object isn\'t receiving any data and is hanging at the[详细]
2023-03-13 09:08 分类:问答How to read a text file into jtextarea in Java Swing
Here is my code: try { String textLine; FileReader fr = new FileReader(\"ad.txt\"); BufferedReader reader = new BufferedReader(fr);[详细]
2023-03-12 22:27 分类:问答Alternative to .readLine() / readLine only returns lists
I\'m using read line to get some text from wikipedia. But read line only returns lists, not the text that I want. Is there any way to use an alternative or to solve my problem?[详细]
2023-03-10 13:10 分类:问答Making io.BufferedReader from sys.stdin in Python2
How can I make a BufferedReader object from a standard file object, like sys.stdin or what you get from \'open\'?[详细]
2023-03-06 23:26 分类:问答Can't exit while loop in Java when extracting lines from BufferedReader
I\'m trying to read lines from a BufferedReader in java by using a while loop. It will traverse through the BufferedReader as should, but when it should break from the loop it will \'freeze\' the exec[详细]
2023-03-06 01:44 分类:问答File won't read into multiple array positions
I\'m trying to store each line from a file into an arraylist and then combine two arraylists into one. Currently, when I try this, all the different lines are being stored in one line. I want it to sa[详细]
2023-03-05 01:51 分类:问答Socket not closed on Android
i wrote a simple TCP-client class in Java. It is used to connect to a TCP-server written in Python and handle the incoming messages in a new thread. It looks like this:[详细]
2023-03-04 18:22 分类:问答Java - Read all .txt files in folder
Let\'s say, I have a folder called maps and inside maps I hav开发者_如何学编程e map1.txt, map2.txt, and map3.txt. How can I use Java and the BufferReader to read all of the .txt files in folder maps ([详细]
2023-03-04 05:30 分类:问答