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 count lines of a file in C++?

How can I count lines using the standard classes, fstream and ifstream?

c++ file-io io fstream ifstream
Java's createNewFile() - will it also create directories?

I've got a conditional to check if a certain file exists before proceeding (./logs/error.log). If it isn't found …

java file io directory
Read and Write Text in ANSI format

Please have a look at the following code import java.io.*; public class CSVConverter { private File csvFile; private BufferedReader reader; …

java io bufferedreader ansi bufferedwriter
Using scanf() in C++ programs is faster than using cin?

I don't know if this is true, but when I was reading FAQ on one of the problem providing sites, …

c++ c performance io
What is the simplest way of getting user input in C?

There seem to be a LOT of ways you can get user input in C. What is the easiest way …

c input io scanf
Search a file for a String and return that String if found

How can you search through a txt file for a String that the user inputs and then return that String …

java io java.util.scanner
Modify the content of a file using Java

I want to delete some content of file using java program as below. Is this the write method to replace …

java file-io io filereader filewriter
Java Read / Write To File - BufferedReader BufferedWriter

This is a code snippet but basically what I want to do is read from a file named 'listings.txt' …

java io bufferedreader bufferedwriter
How to read from standard input line by line?

What's the Scala recipe for reading line by line from the standard input ? Something like the equivalent java code : import …

java scala io java.util.scanner
Preferred way to use Java ZipOutputStream and BufferedOutputStream

In Java does it matter whether I instantiate a ZipOutputStream first, or the BufferedOutputStream first? Example: FileOutputStream dest = new FileOutputStream(…

java io outputstream