Most voted "io" questions
IO are input (input) and output (output) operations. Use this tag for questions whose focus of the problem to be solved are data input and output operations on files, sockets, console, buffers, peripheral devices, etc.
Learn more…36 questions
Sort by count of
-
13
votes1
answer2376
viewsWhat is non-blocking I/O?
What is non-blocking I/O? What are the uses of a language with non-blocking I/O? What are the practical applications of non-blocking I/O? It certainly doesn’t come into question of opinion, so I…
terminology characteristic-language language-independent ioasked 7 years, 9 months ago Asura Khan 2,474 -
12
votes2
answers2347
viewsWhy does my Try/catch only accept "Exception and" (Generic)?
I want to specify the exceptions, not in this general way but the item.write only accepted Exception e public File saveFile(FileItem item, File dirFile, String filename) { dirFile.mkdirs(); File…
-
5
votes2
answers213
viewsLike "clone" an Inputstream?
Often I need to read a InputStream more than once. For example, to pass on the content of stream for multiple methods. void readStream(InputStream input) throws Exception { var result1 =…
-
4
votes1
answer964
viewsHow to create a Java directory using NIO.2 - Java SE 7
The API java. is part of the Java SE platform since its version 1.4. Now, from Java 7, we have several new Enhancements in this API and new features, which provide better management of the file…
-
4
votes1
answer170
viewsProblems with python code in file i/o
Hello, I’m beginner in python, I’m programming in 3.5.1, I was doing a snippet of code that reads and then removes a line from a file: lista = {} # Essa função lê o arquivo e divide ele em linhas,…
-
4
votes2
answers117
viewsStreamwriter class
My idea is to create a system to insert new employees through the method CadastrarFuncionario(), placing the class properties (ID, nome, CPF) inside a file names employees.txt. With the logic used…
-
4
votes1
answer1077
viewsHow to read a list of serialized objects saved in a java file?
I wanted to work with serialization in java files and I read this tutorial about how to write the object in the file and this one on the how to read the file object Then I created the following…
-
3
votes1
answer143
viewsHow to not include Finally and still close IO Streams, Connections, Statements, and other Resources?
We know the need to close resources (files, connections, also called Resources) consumed in Java, such as OutputStream and InputStream. When we don’t close them, we create performance problems and…
-
3
votes2
answers325
viewsByte validation through an image bit array
I am trying to validate an incoming image in an FTP folder. The images start with the bytes "FFD8" and end with the sequence "FFD9" so that there is the possibility to perform the check. I’m getting…
-
3
votes1
answer1393
viewsSave.txt file
I’m having difficulties in a code I’ve built. I can’t find the error. My problem is this: I created a code that generates combinations of numbers and that should save these combinations in a file…
-
3
votes1
answer1049
viewsHow do I write a loop to read a file to a C struct array?
Hello. I have a question how to read numbers from a given file in c to put inside the loop The file . txt will have the following data: 3 Joao Maria branco p Marcio Guess vermelho p Maria Jose…
-
2
votes1
answer244
viewsCould someone tell me what happens in this method?
I have a method that does some things that I would like to know what is...just explain me please please briefly? private static byte[] readFully(InputStream in) throws IOException {…
-
2
votes1
answer27
viewsCheck if dynamic named file exists on disk
My program generates an XML file named after the following structure: C:/wayDosFile/Nameanob_data_nrdeelementosnoxml.xml At the moment, I’m every time I file and he has the nrDeElementosNoXML other…
-
2
votes1
answer72
viewsEntering an arithmetic expression instead of an integer in C
I’m new in C and I made a very simple program that takes two numbers and prints the sum of them: // Programa que faz uma soma simples #include <stdio.h> // Função principal do programa int…
-
1
votes1
answer178
viewsknow how much a i/o disk consuming process
all right? I can already monitor CPU, memory Ram, Disk... but, I haven’t figured out how much a process is spending disk. Is there any way in c# for that?
-
1
votes0
answers54
viewsIs it possible to use the stlport library on an Arduino, with Cout?
I’m working on a project with an Arduino in which I need to use the library Eigen, so I’m using Eigenarduino. However, this library requires a standard library, which is not available in Arduino, by…
-
1
votes1
answer112
viewsIgnore file with Python
I’m developing a client that le files .JSON and sends them to an API. Files are deposited periodically in a folder. However, what I want is that when an error occurs with the file (file being used,…
-
1
votes1
answer517
viewsRead XML tag blocks based on a search
I have a folder where insert logs are stored in the database. Log files follow this structure: <item xsi:type="tns:StatusResultReport"> <id xsi:type="xsd:int">1569692</id>…
-
1
votes2
answers994
viewsHow to read Console strings?
I’m trying to make a code that reads a string from Console browser and assign the string value in id "txtTextoResposta". To make it more illustrated, I want to make it similar to C#, when we do like…
-
1
votes1
answer52
viewsFix writing on txt
I have an excerpt of code that writes in TXT, it works but excludes what was written before, how do I make it nay replace what was already written? Follow the excerpt of the code I’m using: public…
-
1
votes1
answer1281
viewsHow to delete an entry from a Python file without having to read the entire file?
I have a file with the following entries: Ana Joao Pedro José .... And I need to delete the line with the name Pedro, it would be easy for me to read the whole file, save in a list delete Pedro and…
-
1
votes1
answer39
viewsAppend lines in an existing file
I’m trying to add lines to a report, but the new lines are overwriting the old ones. Class with main method: import java.io.FileNotFoundException; public class TesteInscricoes { public static void…
-
1
votes0
answers35
viewsOperation I/O 'Block' loop?
Greetings friends, I come here to ask for help in relation to doubt about the operations of Request and with the operation Open. As far as I know and read, the operation file_request =…
-
0
votes2
answers700
viewsC# - I/O on the network
I have a program that makes I/O files (create, edit, save), but I need to put it to do this I/O with files that are on the company network, both read and write. My question is: My program needs…
-
0
votes1
answer715
viewsJava data input and output and data processing
I have a huge list of exercises and I only have these two to do last but I can’t do it at all. This I/O thing didn’t get in my head! Make a program that reads a text file, named "input.txt",…
-
0
votes1
answer70
viewsIndexoutofboundsexception in reading an Inputstream
follows the excerpt of the code I am studying: FileInputStream stream = new FileInputStream("/home/rafael/2015.json"); // esse aquivo tem 24 bytes byte[] result = new byte[(int)…
-
0
votes1
answer398
viewsHow to run programs without specific path
Example: I want you to automatically do a search of the program I write, and if you find an application ". exe" it run it, if not find, send a message saying that the program is not installed on the…
-
0
votes2
answers53
viewsWhy am I having trouble with C-scanf?
Hi, I’m trying to do a very basic cmd, but I’m having problems... My code: #include <stdio.h> int main() { char arg[300]; scanf("print '%s'", arg); printf("%s", arg); fgetc(stdin);…
-
0
votes0
answers25
viewsWhy does Linqpad say a network directory exists, while . NET does not?
I have a network directory on "\\10.88.0.1\rec". However Directory.Exists returns false while debugging in visual studio. This is strange since the LinqPad returns true. Are there any differences…
-
0
votes0
answers75
viewsHow to know when the file was loaded 100%
I have a feature that does the following: Load a video from the user’s PC using C# Put the video link in src of an HTML5 using Jquery The problem: It puts the link and shows the player, but as the…
-
0
votes0
answers23
viewsHow can I work with files in network directories on . NET?
How do I access files present in network directories on . Net? Accessing local files is simple, I can do Directory.EnumerateFiles("C:\\", "*.*"). But Directory.EnumerateFiles("\\\\10.88.0.1\\rec",…
-
0
votes0
answers67
viewsJava - XML File - Empty Final File
I have a Java webservice that is triggered to perform integrations via exchange of XML files with an ERP, it worked perfectly from the day I developed it. Yesterday morning, it went on to generate…
-
0
votes0
answers47
viewsHow do I edit a list of objects within a txt file?
I am doing a job in college for the discipline of OOP in java. In this way it was requested a crud operating files ". txt". I’m having a hard time manipulating the list I put in there. I can provide…
-
0
votes1
answer202
viewsProblem to list directories with java
I’m trying to list all the files in the C: directory on my PC. Smaller directories with 11 thousand files is picking up normally, it takes a while, but it’s no problem. The problem is when I will…
-
0
votes2
answers3609
views"The process cannot access the file because it is being used by another process"
I have a class that retrieves database data and stores it in a D.Reader, and write each record in a text file, in this method: public void Escreve_Arquivos_Txt() { string folder =…
-
0
votes1
answer169
viewsConstant '' " used before being initialized
How do I get access to an attribute of one class in another? It may sound silly, but I’m learning now Swift and still getting confused with simple things. I’m trying to make a movie app using an…