Questions tagged [buffered]

96 questions
0
votes
3 answers

Buffered reader - remove punctuation

I need help with reader, which will remove punctuation and numbers and will create array of strings out of the input. For example, on the input, there will be "example.txt" file which will contain something like this: Hello 123 , I'am new example…
Filip Kraus
  • 2,714
  • 2
  • 14
  • 16
0
votes
1 answer

Type of Linux/Unix I/O

i have to make a presentation about Linux/Unix I/O: File I/O,Standard I/O, buffered/unbuffered I/O and formatted/unformatted I/O. i'm not sure how to order these kinds of I/O to make sense. here is my try: file I/O unbuffered I/O buffered…
Christian Götz
  • 818
  • 1
  • 8
  • 11
0
votes
3 answers

How to write to a File and add "'s and )'s

I'm writing to a file using BufferedWriter and when I enter this code bfW.write("System.out.println("YOUR NEW PROGRAM IS COMPLETED");"); and it gives me this error: File_writer.java:93: error: ';' expected …
brandon Whe
  • 206
  • 1
  • 14
0
votes
1 answer

Buffering from arbitrary track position in Android Media Player

I've implemented a play/pause player based on Android media player API, with seek bar, both for local and remote (buffered) files While remote files are correctly buffered from position 0, I would like to know how to buffer a remote file from…
mangusta
  • 3,470
  • 5
  • 24
  • 47
0
votes
1 answer

QuickBlox inspect buffered messages

Is there a way for a user who is currently logged off to know the difference between a message that is buffered while a user is logged off from when the user is logged on and receives the message. If X sends Y 3 messages while Y is logged out of…
EK_AllDay
  • 1,095
  • 2
  • 15
  • 35
0
votes
2 answers

Java buffered reader stops reading lines, if i add a if statement in the while loop:

I am creating a game engine from scratch with java, i have started work on a new save file instead of using imaages for maps: Works and prints out every line: while ((readString = buf.readLine()) != null) { System.out.println("Failed to assign…
0
votes
1 answer

fork() and buffered IO streams

Buffered IO streams have a strange behavior on fork(). In the sample snippet shown below, the file being read is 252 bytes in size. After the fork(), the child is successfully reading a line and printing on the screen. however, when the control goes…
user3012653
  • 85
  • 1
  • 13
0
votes
2 answers

How do I "Delimit" a buffered reader with a text document?

So, I am trying to read in a document (.txt) into a java project using a buffered reader, edit it, and return it/output it. The issue I'm having is that I can't get the punctuation to be recognized. The document reads: hello…
0
votes
1 answer

Lagg fix BufferedImage

Is there another Image Variable then buffered Image because when I launch my aplication, which reads from a text document a map, it laggs a lot My code whith the BufferedImage(Sorry i am not English): for(int i = 0; i < pole[0].length; i++) { …
0
votes
1 answer

Java tutorial method example

Here there is a snippet taken from here: import static java.nio.file.StandardOpenOption.*; Path logfile = ...; // Convert the string to a // byte array. String s = ...; byte data[] = s.getBytes(); try (OutputStream out = new…
Rollerball
  • 12,618
  • 23
  • 92
  • 161
0
votes
2 answers

How to read text file[.log file] every 1Mb

I have a large log file and I want to read it 1Mb one by one . Example.I have 100Mb text file and I want to read 1Mb at a time. That need 100 times. Any relevant Ideas ?
0
votes
2 answers

php json_encode() output skipping characters randomly

I am using PHP 5.3.15 (cli) (built: Jul 20 2012 23:10:20) on an amazon ec2 instance. When I make a call to json_encode() the resulting JSON randomly skips characters so that the JSON is no longer valid. This happens only some of the time even when…
tslater
  • 4,362
  • 3
  • 23
  • 27
0
votes
2 answers

Buffered Output Writing to File Wrong

I can't figure it out. I'm trying to write out text from my program. It's suppose to a word count program. Show me the number of lines, characters, word count. Then I display the results along with the word the user is searching for and that line.…
user1444775
  • 71
  • 1
  • 1
  • 6
0
votes
1 answer

Read Specific Data with Buffered Filereader

From a text file I am trying to get the the 3rd set of data (type = double) in a row and then sum it up to get the total. My problem is that I am having trouble figuring out how to grab a specific piece of data out of a line with a buffered file…
0
votes
4 answers

BufferedReader error in loop

The first time this loop iterates works well but after I press the char 'y' in order to repeat, the next time it shows, it won't let me enter another name. I don't know what may be causing this, but it reminds me of C when you need to clear the…
Cristian
  • 359
  • 3
  • 6
  • 12