Top "File-io" questions

File I/O is input/output that involves the file system.

How do I append text to a file?

What is the easiest way to append text to a file in Linux? I had a look at this question, …

linux file text file-io append
How to read an entire file to a string using C#?

What is the quickest way to read a text file into a string variable? I understand it can be done …

c# string file-io .net-3.5
Delete directories recursively in Java

Is there a way to delete entire directories recursively in Java? In the normal case it is possible to delete …

java file-io filesystems delete-directory
Scanner vs. BufferedReader

As far I know, the two most common methods of reading character-based data from a file in Java is using …

java file-io java.util.scanner bufferedreader
Python concatenate text files

I have a list of 20 file names, like ['file1.txt', 'file2.txt', ...]. I want to write a Python script to …

python file-io concatenation
The input is not a valid Base-64 string as it contains a non-base 64 character

I have a REST service that reads a file and sends it to another console application after converting it to …

c# file-io base64
Lazy Method for Reading Big File in Python?

I have a very big file 4GB and when I try to read it my computer hangs. So I want …

python file-io generator
Java read file and store text in an array

I know how to read a file with Java using Scanner and File IOException, but the only thing I don't …

java arrays file-io storing-data
Delete all files in directory (but not directory) - one liner solution

I want to delete all files inside ABC directory. When I tried with FileUtils.deleteDirectory(new File("C:/test/ABC/")); …

java file-io apache-commons-io
How to read a specific line using the specific line number from a file in Java?

In Java, is there any method to read a particular line from a file? For example, read line 32 or any …

java file-io