Questions tagged [buffered]
96 questions
0
votes
2 answers
How to store different parts of a text file into different variables?
I am trying to read parts of a text file with the format
John Smith
72
160
The first line being the name (string), and the second and third lines being height and weight (both ints). However, I cannot find a way to store each of these into their…

msh118
- 13
- 1
0
votes
1 answer
Image not rendering (JAVA)
So, today I decided to try to make my own game without using a tutorial, and if I have a problem, try to figure it out on my own. However, this problem is something that I don't understand.
Here is my code:
Game class (where the image is supposed…

AROD2003
- 1
0
votes
1 answer
Xcode std::cout output acting odd
I've been using Xcode for 2 years and have written quite a few C++ command line applications. For the past few months, I've abandoned command line applications and have focused on GUI applications, but after coming back to some older command line…

JosephTLyons
- 2,075
- 16
- 39
0
votes
0 answers
buffered store grid does not remember selection after scroll
I am using buffered store grid in extjs 4.1 after checking header checkbox all records get checked in view and if I scroll to the last and come back to first record my header checkbox and some rows get unchecked. i have used prunRemoved false on…

Priyanka
- 53
- 7
0
votes
1 answer
mIn java, how would one go about loading a web page into a BufferedReader, as mine will not print?
Hey I a having a little trouble here. I am doing File Writing at school and we got the challenge of reading a webpage. How is it possible to do it? I had a go with a JSoup and an Apache plugin, but neither worked, but I have to use the net import
I…

Samuelf80
- 119
- 1
- 10
0
votes
4 answers
client socket sends data but server socket does not receive them. c++ buffered stream?
I am working on a project where a partner provides a service as socket server. And I write client sockets to communicate with it. The communication is two way: I send a request to server and then receive a response from server.
The problem is that I…

rnd_nr_gen
- 2,203
- 3
- 36
- 55
0
votes
1 answer
How to read data (xml) sent by server if it doesn't send new line
Let's say we try to communicate with a server (XMPP) which sends back XML data. We can use
conn, err := net.Dial("tcp", s.Addr+":5222")
//...
r := bufio.NewReader(conn)
//...
s, err := s.R.ReadString(10) // to read a string
But there is one…

Gonzalez
- 681
- 1
- 11
- 21
0
votes
0 answers
Best way to handle awt.Image buffering in JavaFX
I have a class that takes a String parameter and performs a google search, then it gets the ten images and puts them in an array, that is then handled by another method in the same class. Using Javafx.scene.image would probably allow me to implement…

Dzeri96
- 196
- 2
- 13
0
votes
1 answer
Buffered writer is not writing text?
i am making a simple program that takes a username and password and saves it to a text file. however, the program works fine until i check the hard drive. the text file is there bu there is no text.
public class Main {
public static void…

jack arnold
- 55
- 7
0
votes
1 answer
Extjs buffered store loads all new added items
I am trying to use Ext's (4.1.1) buffered store/grid combination with data, which I cannot access directly through a rest Api.. or so, but the incoming data is handled by my controller and want just add this data to the buffered grid.
And here comes…

webdeb
- 12,993
- 5
- 28
- 44
0
votes
1 answer
Java - Writing to a file as text or as binary
I have a question about using streams with files. I know that if I need to do my own file type then the best option is to write/read in binary using for example BufferedInput/Ouput streams. I have always been considering the best performance in my…

Bobul Mentol
- 134
- 1
- 7
0
votes
2 answers
How to write data to buffer before writing on to disk in C#
In C++ it is possible to write buffered i/o using setvbuf. how to achieve the same in C#. Is there any method available to write buffered i/o in C#

sirisha
- 11
- 2
0
votes
3 answers
Java Remove Duplicates from file search for String Array [0]
I have a long text file.
Now I will remove duplicates from the file. The problem is that the search parameter is the first word in the list, split by ":"
For example:
The file…

Patrik
- 23
- 6
0
votes
6 answers
Array Index out of bounds when reading from CSV file
I'm trying to read a CSV file using a BufferedReader, but for some reason I get an out of bounds exception after 7 rows. I tried this exact algo on another CSV file (30 rows) and it worked fine. Here is the CSV file in question.
String spellPath…

ninesalt
- 4,054
- 5
- 35
- 75
0
votes
1 answer
Assign and print an input string to a variable. Lisp
I want my program to ask for an expression, assign an inputted string to a variable 'exp' and then print the expression.
However I am having some trouble. I first tried using (read)
(princ "Enter a expression to be evaluated.")
(setf exp…

sam
- 123
- 2
- 8