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 do I read / convert an InputStream into a String in Java?

If you have a java.io.InputStream object, how should you process that object and produce a String? Suppose I …

java string io stream inputstream
Looping through the content of a file in Bash

How do I iterate through each line of a text file with Bash? With this script: echo "Start!" for p …

linux bash loops unix io
How do I create a Java string from the contents of a file?

I've been using the idiom below for some time now. And it seems to be the most wide-spread, at least …

java string file file-io io
How can I read a large text file line by line using Java?

I need to read a large text file of around 5-6 GB line by line using Java. How can I …

java performance file-io io garbage-collection
How do I check if a file exists in Java?

How can I check whether a file exists, before opening it for reading in Java (the equivalent of Perl's -e $…

java file-io io file-exists
How to read all files in a folder from Java?

How to read all the files in a folder through Java?

java file io directory
How to append text to an existing file in Java?

I need to append text repeatedly to an existing file in Java. How do I do that?

java file-io io text-files
Unicode (UTF-8) reading and writing to files in Python

I'm having some brain failure in understanding reading and writing text to a file (Python 2.4). # The string, which has an …

python unicode utf-8 io
How do I get the file extension of a file in Java?

Just to be clear, I'm not looking for the MIME type. Let's say I have the following input: /path/to/…

java file io
Load data from txt with pandas

I am loading a txt file containig a mix of float and string data. I want to store them in …

python io pandas