Top "File-io" questions

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

PHP: How to check if image file exists?

I need to see if a specific image exists on my cdn. I've tried the following and it doesn't work: …

php image file file-io
How to copy a file from one directory to another using PHP?

Say I've got a file test.php in foo directory as well as bar. How can I replace bar/test.…

php file file-io copy filesystems
Why does Node.js' fs.readFile() return a buffer instead of string?

I'm trying to read the content of test.txt(which is on the same folder of the Javascript source) and …

javascript file-io node.js
How to delete a folder with files using Java

I want to create and delete a directory using Java, but it isn't working. File index = new File("/home/Work/…

java file-io delete-directory
Python recursive folder read

I have a C++/Obj-C background and I am just discovering Python (been writing it for about an hour). I …

python scripting file-io
How to write a multidimensional array to a text file?

In another question, other users offered some help if I could supply the array I was having trouble with. However, …

python file-io numpy
How to open a file for both reading and writing?

Is there a way to open a file for both reading and writing? As a workaround, I open the file …

python file file-io
Read and write to binary files in C?

Does anyone have an example of code that can write to a binary file. And also code that can read …

c linux file-io binary
Error when creating a new text file with python?

This function doesn't work and raises an error. Do I need to change any arguments or parameters? import sys def …

python file python-3.x file-io
How to add a new line of text to an existing file in Java?

I would like to append a new line to an existing file without erasing the current information of that file. …

java file-io text-processing