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 check for file lock?

Is there any way to check whether a file is locked without using a try/catch block? Right now, the …

c# .net io filelock
How to get resources directory path programmatically

I have the following directory layout: src main java resources sql (scripts for database) spring (configuration) webapp Within a ServletContextListener …

java spring io
Editing specific line in text file in Python

Let's say I have a text file containing: Dan Warrior 500 1 0 Is there a way I can edit a specific line …

python io
Reading a file character by character in C

I'm writing a BF interpreter in C and I've run into a problem reading files. I used to use scanf …

c file-io io iostream
Create a new line in Java's FileWriter

I have coded the following FileWriter: try { FileWriter writer = new FileWriter(new File("file.txt"), false); String sizeX = jTextField1.getText(); …

java io filewriter
read complete file without using loop in java

Possible Duplicate: How to create a Java String from the contents of a file Whole text file to a String …

java file io
Is it possible to create a File object from InputStream

Is there any way to create a java.io.File object from an java.io.InputStream ? My requirement is reading …

java io
What throws an IOException in Java?

java.io.IOException seems to be the most common type of exception, and coincidentally, it seems to also be the …

java exception io ioexception
Do I need to close() both FileReader and BufferedReader?

I'm reading a local file using a BufferedReader wrapped around a FileReader: BufferedReader reader = new BufferedReader(new FileReader(fileName)); // read …

java io bufferedreader filereader
Getting "java.nio.file.AccessDeniedException" when trying to write to a folder

For some reason I keep getting java.nio.file.AccessDeniedException every time I try to write to a folder on …

java file-io io access-denied