Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
139 views

I have the following problem: method1 that keeps reading from System.in and sending it via Socket method2 that only reads from System.in when a error occurs in it When I have a problem in method2, I ...
Kobra's user avatar
  • 1,378
0 votes
1 answer
95 views

For the below code, if I make a second call to supplier with "get" method, the count is zero. import java.io.BufferedReader; import java.io.File; import java.io.FileNotFoundException; import ...
learner's user avatar
  • 322
0 votes
2 answers
97 views

I'm following a java 2d game tutorial from ryisnow on youtube. https://www.youtube.com/watch?v=ugzxCcpoSdE I was able to display each tile on its own but I don't know why the .txt isnt working here is ...
Alan Morgan's user avatar
0 votes
1 answer
99 views

I have a text file (.txt) and am opening the file using JSR223 Sampler under once only controller like: BufferedReader br = new BufferedReader(new FileReader(filePath) vars.putObject("br",br)...
NPAL's user avatar
  • 11
1 vote
1 answer
344 views

In Python, the io.BufferedReader class has various methods to read bytes from a stream, using an internal buffer. The read method may make various read calls to the underlying raw stream, the peek ...
Brett's user avatar
  • 11
1 vote
1 answer
158 views

I'm building an application for a university project. While building the TUI that must use directly the terminal to receive input and display it. I wanted to achieve the following, not block the main ...
user avatar
1 vote
0 answers
55 views

I am trying to read a 30GB CSV file with 60 columns and over 78 million rows into an H2 database on disk. H2 url: jdbc:h2:file:./data/datasource Simplified code I am using to transfer the file: import ...
Jack J's user avatar
  • 1,654
0 votes
1 answer
194 views

I'm working on a python service where I have an image provided as a PIL Image. I'm wanting to pass this image to Azure Vision using a ComputerVisionClient. My setup is correct as I can pass in local ...
Jason Goldsmith's user avatar
0 votes
2 answers
35 views

I'm trying to read a archive csv with name, company, city, states, address, number, complement, neighborhood, cep and country, with a array like this: `String path = "/home/arthur/Documentos/fe....
Arthur Godoy's user avatar
1 vote
1 answer
146 views

My program has a main while loop as the main logic, with an inner while loop for running the logic of the "command function". When inside the inner while loop, I want EOF (Ctrl + D) to exit ...
LHY's user avatar
  • 743
0 votes
0 answers
59 views

I am trying to write a program that acts as an automatic grader that will run a student's java file write it's output to a text file test that text file against another text file with the desired ...
NeverEndingQuestions's user avatar
0 votes
1 answer
828 views

Im making a form with Next 14 using server actions and integrating some WYSIWYG text editor (ReactQuill). Im getting the form values in the server side but I dont know how to get the buffer value of ...
AlZ's user avatar
  • 29
0 votes
1 answer
38 views

I'm using a common solution which is using the BufferedReader class in order to get the the input stream but it seems that if I can see the command console opening with the application running, I ...
Rafale_Scarlet's user avatar
0 votes
2 answers
42 views

i watched many yt videos and tried for hours to get this right but i have no idea how it works. My goal is to have a saved .txt file and read out an array from it. The simplest way i found ist this ...
marlon mattes's user avatar
0 votes
1 answer
2k views

Problem&& what Im doing I have written a Python script that checks the ports of the computer in search for a specific reader using it's Windows hardware ID and returns True or False ...
Shaked Ben Eliezer 's user avatar
0 votes
2 answers
221 views

I'm working through the first exercise in John Crickett's coding challenges, which is to create a wc clone that counts the number of lines, bytes, words and characters in a text file. I'm on Step 4, ...
Mick McCarthy's user avatar
0 votes
0 answers
144 views

I am trying to test out a virtual serial connection in python with individual funtions for each test. ''' Testing Virtual Serial Port Connections ''' import os import sys import time import serial ...
Paul Bernard's user avatar
0 votes
1 answer
116 views

With reference to this and this Q&A's, given that Java's Scanner supports both character encoding as well as buffering, is there ever a need to wrap the InputStream into a InputStreamReader, ...
Vahan's user avatar
  • 61
0 votes
1 answer
109 views

I am trying to read numbers from a text file. The first lines of metro.txt contain: 376 933 0000 Abbesses 0001 Alexandre Dumas Whereas the first few lines of testnum.txt contain: 444 555 6666 flowers ...
MatRanc's user avatar
0 votes
0 answers
42 views

I have watched several videos and visited every stackoverflow thread I could find about reading files from within a jar and none of the methods I have found worked for me. My most recent attempt was ...
Ethan's user avatar
  • 48
-2 votes
4 answers
80 views

I'm trying to extract values from a text file. The content of the file is as follows: Cliente 1, 'Aarón', 'Rivero', 'Gómez', 'Almería', 100 2, 'Adela', 'Salas', 'Díaz', 'Granada', 200 3, 'Adolfo', '...
MPCatcher's user avatar
-2 votes
1 answer
177 views

class CSVFileParser { ArrayList<String[]> convertCSVToArrayList(String filePath) { String line = ""; ArrayList<String[]> rows = new ArrayList<>(); ...
Utkarsh Jain's user avatar
0 votes
1 answer
123 views

I am doing a midterm where we have to make a GUI grocery list. The professor is asking us to make the list into a .txt file and read from that file. There is also a delete section and delete all which ...
Zapherail's user avatar
0 votes
2 answers
94 views

I am trying to build a terminal mode application that allows a user to input certain attributes as a filtered search of Toyota vehicles released in the 80s. This is an assignment for a class so there ...
herb's user avatar
  • 1
-1 votes
1 answer
84 views

I have a piece of code reading a file. The content of the file is just an id for each line. Nothing special. However, I'm not sure why each style of this code produces different results. The content ...
toy's user avatar
  • 12.2k
-2 votes
1 answer
565 views

Follows on from this partial answer to my question there. I'm basically trying to understand how a particular manifestation of BufReader works, which is not std::io::BufReader. The puzzling thing is ...
mike rodent's user avatar
  • 16.2k
0 votes
1 answer
89 views

I am trying to read contents from an srt file and I am using Java's BufferedReader to read the file line by line. The content from the srt file is: 2 00:00:40,665 --> 00:00:44,806 <i>♪ Nants ...
Suvid Sahay's user avatar
2 votes
0 answers
79 views

Is there any performance gain if we have: BufferedReader reader = new BufferedReader(new InputStreamReader(new BufferedInputStream(new FileInputStream("SOME_FILE")), StandardCharsets.UTF_8)) ...
joker's user avatar
  • 3,841
0 votes
0 answers
24 views

When using read() from BufferedReader, when I press enter after typing input, the first input is taken but the next input statement is also executed, before I can type input for the next statement. ...
Subhrasmit Kar's user avatar
-1 votes
1 answer
67 views

I use method for create and retrieves the list of entries with existing file using the instance. My goal is to mute all actions performed by check Counter into several independent methods exemple ...
S_LUCIA's user avatar
-1 votes
1 answer
276 views

This error happens and I do not know why, it links back to the posting function. I originally thought it was because I used the wrong variable for the access to my Tumblr blog, but the same error ...
Cassidy Mettraux's user avatar
-1 votes
2 answers
47 views

I have some text lines like this 14 14 14 14 32 32 32 32 I want to convert into 2D array with BufferReader. Any help?
Minh Anh's user avatar
0 votes
2 answers
112 views

I have a small homeworks, I need to convert text line of integers contains 10,000 numbers. I have tried this code below: BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int[] ...
Minh Anh's user avatar
0 votes
1 answer
162 views

I was triying to lunch some commands from JAVA to my RedHat server, this is the code that im testing: public synchronized String lunchLinuxCommand() { try { log.info("init ...
Cristian Perez's user avatar
1 vote
1 answer
499 views

I wanted to use rayon's par_bridge() to parallelize an Iterator, but I could not because of the error "the method par_bridge exists for struct MyReader, but its trait bounds were not satisfied ...
foehn's user avatar
  • 479
0 votes
4 answers
722 views

I'm writing a java program for a school project that reads in data about covid-19 from a csv text file which has data in the following format:(date, state, fips code, # of cases, # of deaths). The ...
Dzubek's user avatar
  • 1
0 votes
1 answer
1k views

I am trying to log the response body of an HTTP request in a .NET 7 application, but I keep getting a System.NotSupportedException when I try to read from the response body stream. Here is the code I ...
Muharrem Servet ANKARALI's user avatar
0 votes
2 answers
103 views

I have multiple InputStream, and I want to read without polling. My actual code: BufferedReader p = new BufferedReader(new InputStreamReader(k.getInputStream())); BufferedReader p2 = new ...
SempriGno's user avatar
0 votes
0 answers
42 views

When I mention "better", it means the program will reduce its use of memory, or the program will run faster. In competetive coding, we seek better IO and reduce time and space complexity to ...
LLLgoyour's user avatar
-1 votes
3 answers
107 views

this code is creating a loop , The variable named "Number of students" is constantly increasing. I couldn't find where the problem is. {1.14,1.49,1.54,1.86,2.04,2.19,2.86,3.02,3.16} when I ...
özkan's user avatar
  • 13
0 votes
0 answers
151 views

new java developer. this code isn't working. it keeps generating this error: java.io.FileNotFoundException: file1.txt (No such file or directory) even though the file is in the same folder (src) as ...
eshtabel3asal's user avatar
0 votes
0 answers
50 views

I want to save a highscore in a database, but if an sql-exeption is thrown I want to temporary save the data in a file. The game has diffent modes and for each there is a highscore. I would like to ...
Cedric's user avatar
  • 1
1 vote
0 answers
74 views

I am running an R script from java using RScript and Runtime.getRuntime() as shown in the code below. The code seems to stop part way through (the code stops writing output). If I run the script ...
John's user avatar
  • 4,072
0 votes
0 answers
42 views

I tried to fetch data from a .txt using buffered Reader etc. But I just don't get the data into my listview. Writing works, but not reading. It doesn't show any errors. Would appreciate it, if ...
PhilOLink's user avatar
2 votes
1 answer
85 views

I'm working through an example program provided in the Book "Java A Beginnner's Guide (9th Ed.)" by Herbert Schildt. The example reads: The following program demonstrates read() by reading ...
fourleafclover's user avatar
1 vote
0 answers
102 views

This code reads a text file character by character. It prints the line number, character number, and the character using different functions. The nextChar() function correctly changes the line and ...
beatmaister's user avatar
1 vote
1 answer
87 views

I am trying to understand if I need to read data from different types of files (.properties file, json file, text file etc) or from console, which java class should I use and why exactly. Some classes ...
Sudipta Mohapatra's user avatar
0 votes
2 answers
2k views

I am using a method with a BufferedReader with FileReader to read a file. The file consists of several lines of items separated by multiple white spaces. I am looping through the each line of the file ...
Archie Given's user avatar
-2 votes
1 answer
42 views

!(https://i.sstatic.net/UpHxf.png) When I run the code on my Eclipse IDE , it reads the input properly through the console but when I try to submit the code on SPOJ , the compiler throws NZEC error I ...
Dhyan Prasad's user avatar
0 votes
0 answers
244 views

I'm trying to get all the console outputs from a stream that in this case, the stream is from a Python console. This is a part of a library that I'm doing on GitHub; in it you can find all the code. I ...
Bobby ESP's user avatar

1
2 3 4 5
66