Top "Io" questions

In computing, input/output, or I/O, refers to the communication between an information processing system (such as a computer), and the outside world, possibly a human, or another information processing system.

How to find out if a file exists in C# / .NET?

I would like to test a string containing a path to a file for existence of that file (something like …

c# .net io
What is InputStream & Output Stream? Why and when do we use them?

Someone explain to me what InputStream and OutputStream are? I am confused about the use cases for both InputStream and …

java io inputstream outputstream
Cannot delete directory with Directory.Delete(path, true)

I'm using .NET 3.5, trying to recursively delete a directory using: Directory.Delete(myPath, true); My understanding is that this should …

c# .net exception io
A non-blocking read on a subprocess.PIPE in Python

I'm using the subprocess module to start a subprocess and connect to its output stream (standard output). I want to …

python io subprocess nonblocking
Difference between fprintf, printf and sprintf?

Can anyone explain in simple English about the differences between printf, fprintf, and sprintf with examples? What stream is it …

c io stream printf
How to copy file from one location to another location?

I want to copy a file from one location to another location in Java. What is the best way to …

java io
How to create a file in Ruby

I'm trying to create a new file and things don't seem to be working as I expect them too. Here's …

ruby file io errno
How to prevent SIGPIPEs (or handle them properly)

I have a small server program that accepts connections on a TCP or local UNIX socket, reads a simple command …

c io signals broken-pipe sigpipe
Using FileSystemWatcher to monitor a directory

I am using a Windows Forms Application to monitor a directory and move the files dropped in it to another …

c# winforms io copy filesystemwatcher
How to write a large buffer into a binary file in C++, fast?

I'm trying to write huge amounts of data onto my SSD(solid state drive). And by huge amounts I mean 80…

c++ performance optimization file-io io