Questions tagged as 'stream'

2
answers

Problems with sockets in java, how to send and receive messages simultaneously between client and server?

I'm working with sockets in java and I was able to find the following problem, writing the server class I sent a message to the client to read, so far, ok !! But when I try to send a message to the server from the client, I can not get the two m...
asked by 03.07.2016 / 22:57
1
answer

Save output after applying a replace

Hello, I have the following code, but I need to apply a replace to output ( FileOutputStream ) I get via http before saving it. public void DownloadFile(String fileURL, String fileName) { new Thread(new R...
asked by 26.07.2015 / 04:29
1
answer

Serialize / Deserialize DateTime

I'm saving to a text file a serialized object that only contains fields of type DateTime, but the date is saving wrong. I'll demonstrate with an example what I'm doing. My DataBaseViewModel object contains two fields of type DateTime [Se...
asked by 09.11.2015 / 19:45
3
answers

Infinite loop when typing a character

I'm doing error testing on my "Monkey Test" program and it goes into loop infinity when I type a character on the keyboard other than number. int ActionGenerator() { bool Verify; int Action; Verify = true; while(Verify){...
asked by 25.11.2014 / 22:20
2
answers

Read a string separated by a comma

My reading has been set to the point of comma, but he is reading every field to the end of the line when you read the string. The code is read correctly, but only in code. #include <stdio.h> #include <string.h> struct setorEletron...
asked by 02.12.2014 / 19:36
2
answers

Stream Manipulation (Java 8)

Hi, I have a String Stream with many lines of a txt, I need to do a split to break the lines in the pipes, but the return as you know is a String vector, to know if this is possible: Stream<String> linhas=Files.lines(caminho,StandardChar...
asked by 02.03.2017 / 15:51
1
answer

Error writing stream file

   The stream was not writable You receive this exception when you try to change a file that is in resource . Here is the code: var assembly = Assembly.GetExecutingAssembly(); Stream str = assembly.GetManifestResourceStream("PCCLC...
asked by 07.06.2016 / 22:04
1
answer

Infinite loop with data stream in PHP

I have the following code below: <?php $Start = microtime(true); $Code = <<<'Code' <?php for($i = 0; $i < 300; $i++){ echo '.'; } Code; include 'data://text/plain,'.$Code; echo microtime(true) - $Start; PHP is enter...
asked by 19.10.2015 / 23:21
1
answer

Response.Write / Flush hangs after many calls

DISCLAIMER: I asked the same question in StackOverflow in English, I'll carry the valid answer from here to there, if necessary, but I know that not all users here access the StackOverflow in English, so I intended to extend the radius of resp...
asked by 01.07.2014 / 19:54
1
answer

With reading a keyboard number without using the "enter" in C ++

I want to create a menu where the user chooses the option 1 to 5, would like the user to type the number and the program would enter the option without having to press Enter . Here's an example #include <iostream> #include <cstdio...
asked by 13.11.2017 / 18:04