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 can I print 0x0a instead of 0xa using cout?

How can I print 0x0a, instead of 0xa using cout? #include <iostream> using std::cout; using std::…

c++ io iostream iomanip
How to read a file as a byte array in Scala

I can find tons of examples but they seem to either rely mostly on Java libraries or just read characters/…

scala io bytearray
How to read/print the ( _io.TextIOWrapper) data?

With the following code I want to > open a file > read the contents and strip the non-required lines &…

python printing io typeerror word-wrap
How to add a Timeout to Console.ReadLine()?

I have a console app in which I want to give the user x seconds to respond to the prompt. …

c# .net console timeout io
Using io.BufferedReader on a stream obtained with open()?

I want to use a buffered stream because I want to use a peek() method to peek ahead but use …

python io python-2.7 buffered
how to read last line in a text file using java

I am making a log and I want to read the last line of the log.txt file, but I'm …

java io bufferedreader
Java Scanner doesn't wait for user input

I am using Java's Scanner to read user input. If I use nextLine only once, it works OK. With two …

java io java.util.scanner
How to compress files

I want to compress a file and a directory in C#. I found some solution in Internet but they are …

c# .net io compression c#-2.0
Binary buffer in Python

In Python you can use StringIO for a file-like buffer for character data. Memory-mapped file basically does similar thing for …

python binary io buffer
java IO to copy one File to another

I have two Java.io.File objects file1 and file2. I want to copy the contents from file1 to file2. …

java file file-io io java-io