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.

Listing files in a directory matching a pattern in Java

I'm looking for a way to get a list of files that match a pattern (pref regex) in a given …

java io
Read from file or stdin

I am writing a utility which accepts either a filename, or reads from stdin. I would like to know the …

c file io stream stdin
hadoop No FileSystem for scheme: file

I am trying to run a simple NaiveBayesClassifer using hadoop, getting this error Exception in thread "main" java.io.IOException: …

java hadoop io
What exactly is Python's file.flush() doing?

I found this in the Python documentation for File Objects: flush() does not necessarily write the file’s data to …

python io output-buffering fsync
Writing File to Temp Folder

I want to use StreamWriter to write a file to the temp folder. It might be a different path on …

c# io path
Most efficient way to create InputStream from OutputStream

This page: http://blog.ostermiller.org/convert-java-outputstream-inputstream describes how to create an InputStream from OutputStream: new ByteArrayInputStream(out.toByteArray()) Other …

java io stream inputstream bytearrayoutputstream
Printing Mongo query output to a file while in the mongo shell

2 days old with Mongo and I have a SQL background so bear with me. As with mysql, it is very …

mongodb io mongodb-query mongo-shell
Quickly read the last line of a text file?

What's the quickest and most efficient way of reading the last line of text from a [very, very large] file …

java file io
InputStream from relative path

I have a relative file path (for example "/res/example.xls") and I would like to get an InputStream Object …

java path io inputstream relative-path
How to display a progress indicator in pure C/C++ (cout/printf)?

I'm writing a console program in C++ to download a large file. I have known the file size, and I …

c++ c user-interface c++11 io