Questions tagged as 'io'

1
answer

Could anyone tell me what happens in this method?

I have a method that does some things that I would like to know what it is ... just explain me out loud please? private static byte[] readFully(InputStream in) throws IOException { ByteArrayOutputStream out = new ByteArrayOutputStream()...
asked by 25.01.2017 / 15:32
1
answer

Entering an arithmetic expression instead of an integer in C

I'm new to C and I made a simple program that gets two numbers and prints the sum of them: // Programa que faz uma soma simples #include <stdio.h> // Função principal do programa int main( void ) { int num1, num2, soma; printf(...
asked by 09.12.2018 / 01:26
2
answers

"The process can not access the file because it is being used by another process"

I have a class that retrieves data from bank and saves in a D.Reader, and I write each record in a text file, in this method: public void Escreve_Arquivos_Txt() { string folder = Program.caminhoAplicacao + @"\Serializer"; //Cria...
asked by 24.05.2018 / 17:21
1
answer

Verify that the dynamic name file exists on disk

My program generates an XML file with the following name:    C: /FileFile/NOMETER_DOM_Data_NrFeaturesNoXML.xml At the moment, every time I generate a file and it has nrDeElementosNoXML other than nrDeElementosNoXML of the ex...
asked by 23.03.2017 / 12:37
1
answer

Correct writing in txt

I have a code snippet that writes in TXT, it works however it deletes what was written before, how do I make it not replace what was already written? Here's the snippet of code I'm using: public class TestandoEscrita { public static v...
asked by 16.10.2017 / 20:22
2
answers

How to read Console strings?

I am trying to make a code that reads a string from the Console of the browser and assigns the value of the string in the id "txtTextoResposta" . To make it more illustrated, I want to do similar to C # , when we do this: stri...
asked by 08.07.2017 / 22:55
1
answer

Append lines to existing file

I'm trying to append lines to a report, but new lines are overwriting old ones. Class with method main: import java.io.FileNotFoundException; public class TesteInscricoes { public static void main(String[] args) throws FileNotFoundExc...
asked by 19.07.2018 / 04:08
1
answer

know how much a process is consuming from i / o disk

Alright? I can already monitor CPU, Ram memory, Disk ... but, I have not yet figured out a way to know how much a process is wasting disk. Is there any way in C # to do this?     
asked by 06.06.2017 / 23:57
1
answer

Read blocks of XML tags based on a search

I have a folder where the insert logs are stored in the database. The log files follow this structure: <item xsi:type="tns:StatusResultReport"> <id xsi:type="xsd:int">1569692</id>...
asked by 20.04.2017 / 14:32
1
answer

Ignore file with Python

I'm developing a client that le .JSON files and sends them to an API. The files are periodically deposited into a folder. However, what I want is that when an error occurs with the file (file being used, file with syntax error, etc...
asked by 13.04.2017 / 17:24