Top "File-io" questions

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

Deleting all files in a directory with Python

I want to delete all files with the extension .bak in a directory. How can I do that in Python?

python file-io
file_put_contents - failed to open stream: Permission denied

I am trying to write a query to a file for debugging. The file is in database/execute.php. The …

php file-io file-permissions
Android file chooser

I want to make a file uploader. And I hence I need a file chooser but I don't want to …

android file-upload file-io filechooser android-afilechooser
Split files using tar, gz, zip, or bzip2

I need to compress a large file of about 17-20 GB. I need to split it into several files of …

linux bash file-io compression
Android; Check if file exists without creating a new one

I want to check if file exists in my package folder, but I don't want to create a new one. …

android file file-io
How to delete a whole folder and content?

I want the users of my application to be able to delete the DCIM folder (which is located on the …

android file-io directory delete-directory
How do I read the first line of a file using cat?

How do I read the first line of a file using cat?

bash file-io cat
Read binary file as string in Ruby

I need an easy way to take a tar file and convert it into a string (and vice versa). Is …

ruby string file-io
How to append new data onto a new line

My code looks like this: def storescores(): hs = open("hst.txt","a") hs.write(name) hs.close() so if I …

python file-io append
How to save a BufferedImage as a File

I am using the imgscalr Java library to resize an image . The result of a resize() method call is a …

java file-io bufferedimage