Gang Of Coders
Home
About Us
Contact Us
All File Io Solutions on Gang of Coders
Total of 300 File Io Solutions
How do I tell if a regular file does not exist in Bash?
Bash
File Io
Scripting
How to find and restore a deleted file in a Git repository
Git
File Io
Git Checkout
How do I delete a file or folder in Python?
Python
File Io
Directory
Delete File
How do I create an Excel (.XLS and .XLSX) file in C# without installing Microsoft Office?
C#
.Net
Excel
File Io
How do I create a Java string from the contents of a file?
Java
String
File
File Io
Io
How do I create a file and write to it?
Java
File Io
How to redirect output to a file and stdout
Linux
Bash
File Io
Io
Stdout
Correct way to write line to file?
Python
File Io
Find all files in a directory with extension .txt in Python
Python
File Io
Reading a plain text file in Java
Java
File Io
Ascii
How can I read a large text file line by line using Java?
Java
Performance
File Io
Io
Garbage Collection
Is there a way to check if a file is in use?
C#
.Net
File
File Io
File Locking
How do I check if a file exists in Java?
Java
File Io
Io
File Exists
File to byte[] in Java
Java
File Io
Writing a list to a file with Python
Python
File
List
File Io
Newline
open() in Python does not create a file if it doesn't exist
Python
Linux
File Io
File Permissions
How can I open multiple files using "with open" in Python?
Python
File Io
UnicodeDecodeError: 'charmap' codec can't decode byte X in position Y: character maps to <undefined>
Python
Python 3.x
Unicode
File Io
Decode
Print string to text file
Python
String
Text
File Io
How do I save a String to a text file using Java?
Java
File
File Io
Text Files
How to append text to an existing file in Java?
Java
File Io
Io
Text Files
Read file line by line using ifstream in C++
C++
File Io
Ofstream
Batch file to delete files older than N days
Windows
Date
Batch File
File Io
Cmd
Read a file one line at a time in node.js?
Javascript
node.js
File Io
Lazy Evaluation
Read whole ASCII file into C++ std::string
C++
String
Caching
File Io
Standard Library
How to write to file in Ruby?
Ruby
File Io
How do I get the directory from a file's full path?
C#
.Net
File
File Io
Directory
Clearing <input type='file' /> using jQuery
Javascript
Jquery
Html
File Io
Forms
Read .mat files in Python
Python
Matlab
File Io
Scipy
Mat File
Why does Node.js' fs.readFile() return a buffer instead of string?
Javascript
File Io
node.js
How to read a local text file?
Javascript
File Io
Xmlhttprequest
Automatically creating directories with file output
Python
File Io
Reading binary file and looping over each byte
Python
File Io
Binary
Delete directories recursively in Java
Java
File Io
Filesystems
Delete Directory
Write lines of text to a file in R
File Io
R
Rename multiple files in a directory in Python
Python
File Io
File Rename
Easiest way to read from and write to files
C#
.Net
String
File
File Io
How to create a temporary directory/folder in Java?
Java
File
File Io
Directory
Temporary Directory
Does reading an entire file leave the file handle open?
Python
File Io
Filehandle
What's the fastest way to read a text file line-by-line?
C#
.Net
Performance
File Io
Text Files
How to delete files/subfolders in a specific directory at the command prompt in Windows
Windows
Batch File
File Io
Cmd
Directory
Lazy Method for Reading Big File in Python?
Python
File Io
Generator
Read and write a String from text file
Swift
String
File Io
Copy a file in a sane, safe and efficient way
C++
File Io
When should I use mmap for file access?
C
File Io
Posix
Mmap
Scanner vs. BufferedReader
Java
File Io
java.util.scanner
Bufferedreader
How to open a file for both reading and writing?
Python
File
File Io
Parsing CSV files in C#, with header
C#
Csv
File Io
Io
Header
What are all the common ways to read a file in Ruby?
Ruby
File Io
Read file from line 2 or skip header row
Python
File Io
Python recursive folder read
Python
Scripting
File Io
How do I check if file exists in jQuery or pure JavaScript?
Javascript
Jquery
File Io
What is simplest way to read a file into String?
Java
File
File Io
Batch file to copy files from one folder to another folder
Batch File
File Io
How to write a large buffer into a binary file in C++, fast?
C++
Performance
Optimization
File Io
Io
How do I read the first line of a file using cat?
Bash
File Io
Cat
Read binary file as string in Ruby
Ruby
String
File Io
C fopen vs open
C
Linux
File Io
Fopen
Read/Write String from/to a File in Android
Java
Android
String
File Io
How to open a file using the open with statement
Python
File
Python 3.x
File Io
Io
Android; Check if file exists without creating a new one
Android
File
File Io
Delete all files in directory (but not directory) - one liner solution
Java
File Io
Apache Commons-Io
How to read an entire file to a string using C#?
C#
String
File Io
.Net 3.5
C read file line by line
C
File Io
Line
Libc
How do I read an entire file into a std::string in C++?
C++
String
File Io
Java: Path vs File
Java
File Io
Path
Nio
getResourceAsStream returns null
Java
File Io
Resources
How do I create directory if it doesn't exist to create a file?
C#
.Net
File Io
Creating temporary files in Android
Android
File Io
Temporary Files
mmap() vs. reading blocks
C++
File Io
Fstream
Mmap
Writing a Python list of lists to a csv file
Python
File
Csv
File Io
Python 2.7
What's the de-facto way of reading and writing files in Rust 1.x?
File Io
Rust
Merge PDF files
Python
Pdf
File Io
Pypdf2
Pypdf
Java FileOutputStream Create File if not exists
Java
File
File Io
New Operator
Fileoutputstream
How to delete a whole folder and content?
Android
File Io
Directory
Delete Directory
How do I concatenate text files in Python?
Python
File Io
Concatenation
In-place edits with sed on OS X
Macos
File Io
Sed
In Place
What are the Ruby File.open modes and options?
Ruby
File Io
Get last n lines of a file, similar to tail
Python
File
File Io
Tail
Logfile
How to read and write into file using JavaScript?
Javascript
File Io
How to write a UTF-8 file with Java?
Java
File Io
Utf 8
How to delete a file via PHP?
Php
File Io
getResourceAsStream() vs FileInputStream
Java
File Io
Web Applications
Fileinputstream
How to copy a file from one directory to another using PHP?
Php
File
File Io
Copy
Filesystems
How to create a file in a directory in java?
Java
File Io
How do you determine the ideal buffer size when using FileInputStream?
Java
Performance
File Io
Filesystems
Buffer
FileSystemWatcher vs polling to watch for file changes
C#
File Io
Filesystemwatcher
Distributed Filesystem
Deleting all files in a directory with Python
Python
File Io
How to write to a file in Scala?
Scala
File Io
Scala 2.8
How to save a BufferedImage as a File
Java
File Io
Bufferedimage
Python Pandas: How to read only first n rows of CSV files in?
Python
Pandas
Csv
File Io
write() versus writelines() and concatenated strings
Python
String
File Io
Python 2.x
Split files using tar, gz, zip, or bzip2
Linux
Bash
File Io
Compression
Reading file contents on the client-side in javascript in various browsers
Javascript
Html
File Io
Sandbox
Open files in 'rt' and 'wt' modes
Python
File
File Io
Read Write
How to delete a folder with files using Java
Java
File Io
Delete Directory
How to write a multidimensional array to a text file?
Python
File Io
Numpy
SVN command to delete all locally missing files
Svn
File Io
ValueError : I/O operation on closed file
Python
Csv
File Io
Io
Does Java have a path joining method?
Java
File
File Io
Path
Objective-C: Reading a file line by line
Objective C
File Io
Nsstring
Enumerate
Nsstream
Why doesn't java.io.File have a close method?
Java
File Io
Append TimeStamp to a File Name
C#
.Net
File
Datetime
File Io
File being used by another process after using File.Create()
C#
File Io
Deleting a file in VBA
Vba
File Io
Delete File
File Exists
How do I serialize an object and save it to a file in Android?
Android
Serialization
File Io
The input is not a valid Base-64 string as it contains a non-base 64 character
C#
File Io
Base64
Is it necessary to close each nested OutputStream and Writer separately?
Java
File Io
Outputstream
Writer
How can I lock a file using java (if possible)
Java
File Io
How to search file text for a pattern and replace it with a given value
Ruby
File Io
What happens to an open file handle on Linux if the pointed file gets moved or deleted
Linux
File
File Io
Linux Kernel
Systems Programming
File I/O in Every Programming Language
File Io
Language Agnostic
Programming Languages
How do I append text to a file?
Linux
File
Text
File Io
Append
Android file chooser
Android
File Upload
File Io
Filechooser
Android Afilechooser
What is a good way to handle exceptions when trying to read a file in python?
Python
Python 2.7
Exception
File Io
Create a File object in memory from a string in Java
Java
File
File Io
Is file append atomic in UNIX?
Unix
File Io
Posix
Atomic
Python, Pandas : write content of DataFrame into text File
Python
Pandas
File Io
How to write file if parent folder doesn't exist?
node.js
File
File Io
Cross-browser custom styling for file upload button
Html
Css
Cross Browser
File Io
Read/write files within a Linux kernel module
C
File Io
Linux Kernel
Kernel Module
How to delete migration files in Rails 3
Ruby on-Rails
Ruby on-Rails-3
File Io
Replace string within file contents
Python
String
File Io
file_put_contents - failed to open stream: Permission denied
Php
File Io
File Permissions
fs.writeFile in a promise, asynchronous-synchronous stuff
node.js
Asynchronous
File Io
Synchronization
Es6 Promise
Append to a file in Go
File Io
Go
PHP: How to check if image file exists?
Php
Image
File
File Io
Implementing use of 'with object() as f' in custom class in python
Python
File Io
With Statement
How do I use Java to read from a file that is actively being written to?
Java
File
File Io
Batch Renaming of Files in a Directory
Python
File Io
Rename
Batch Rename
What is the rationale for fread/fwrite taking size and count as arguments?
C
File Io
Libc
How to get the location of the DLL currently executing?
C#
.Net
Dll
File Io
How can I read a text file without locking it?
C#
File Io
Fastest Way to Serve a File Using PHP
Php
Performance
File Io
X Sendfile
What’s the best way to check if a file exists in C++? (cross platform)
C++
File
File Io
How to get all files under a specific directory in MATLAB?
Matlab
File
Recursion
File Io
Directory
open() gives FileNotFoundError/IOError: Errno 2 No such file or directory
Python
File
File Io
Filenotfoundexception
File Not-Found
How to create an Excel File with Nodejs?
Excel
node.js
File Io
Export to-Excel
Npm
How to deal with files with a name longer than 259 characters?
C#
Windows
File Io
Interop
Pinvoke
Delete file from internal storage
Android
File Io
C Programming: How to read the whole file contents into a buffer
C
File Io
Reliable File.renameTo() alternative on Windows?
Java
Windows
File
File Io
How to add a new line of text to an existing file in Java?
Java
File Io
Text Processing
Write objects into file with Node.js
Javascript
node.js
File Io
Ant: How to execute a command for each file in directory?
File Io
Ant
Build Process
Build Automation
How to read a specific line using the specific line number from a file in Java?
Java
File Io
Read file-contents into a string in C++
C++
String
File Io
File.exists() returns false when file exists
Java
File Io
How to delete a folder that name ended with a dot (".")?
Windows
Winapi
File Io
How to read file from res/raw by name
Android
File Io
Resources
List all files from a directory recursively with Java
Java
File Io
Closing a file after File.Create
C#
File Io
How to delete directory content in Java?
Java
File Io
Delete Directory
File.Move Does Not Work - File Already Exists
C#
File Io
How to read a binary file into a vector of unsigned chars
C++
File Io
Vector
Binaryfiles
jQuery: get the file name selected from <input type="file" />
Jquery
Events
Copy
File Io
What are `Zone.Identifier` files, and how do I prevent them from being created?
Windows
File Io
Filesystems
Smb
Network Drive
How to append new data onto a new line
Python
File Io
Append
How to read a single character at a time from a file in Python?
Python
File Io
Character
How to safely open/close files in python 2.4
Python
File Io
Python 2.4
How can I extract the file name and extension from a path in C++
C++
String
File Io
Creating files in C++
C++
File Io
Getting the inputstream from a classpath resource (XML file)
Java
File Io
Inputstream
How to delete all files older than 3 days when "Argument list too long"?
Linux
File Io
Resource Cleanup
Create a file from a ByteArrayOutputStream
Java
File
File Io
Io
Bytearrayoutputstream
GZIPInputStream reading line by line
Java
File Io
Filereader
Gzipinputstream
Is there a way to use read.csv to read from a string value rather than a file in R?
R
Csv
File Io
read.csv
Does Python have an argc argument?
Python
Linux
File Io
Error Handling
Arguments
Write a file in UTF-8 using FileWriter (Java)?
Java
File Io
Unicode
Utf 8
File Format
How do I make my program watch for file modification in C++?
C++
File Io
Filesystems
Monitoring
Fsevents
How to update selected rows with values from a CSV file in Postgres?
Sql
Database
Postgresql
File Io
Csv
How to get a MemoryStream from a Stream in .NET?
C#
.Net
File Io
Stream
Memorystream
Copy entire directory contents to another directory?
Java
Grails
File Io
Groovy
Uploading a file in Rails
Ruby on-Rails
Ruby
File Upload
File Io
Java: How to read a text file
Java
Arraylist
File Io
Text Files
Open Excel file for reading with VBA without display
Excel
Vba
File Io
Check if a file exists with Lua
File Io
Lua
File Exists
Getting path relative to the current working directory?
C#
File Io
Slowdown of Microsoft Visual Studio due to different Virus scanner
Visual Studio
File Io
Antivirus
bash, Linux: Set difference between two text files
Bash
File Io
Set Difference
Download/Stream file from URL - asp.net
C#
asp.net
File Io
Streaming
Read and write to binary files in C?
C
Linux
File Io
Binary
What the scenario call fs.close is necessary
node.js
File Io
Getting a FILE* from a std::fstream
C++
C
File
File Io
Fstream
How to calculate the entropy of a file?
Algorithm
File Io
Entropy
Renaming a directory in C#
C#
File Io
Directory
Rename
What happens if I don't call fclose() in a C program?
C
File Io
Fopen
Fclose
Shell/Bash shortcut for bulk renaming of files in a folder
Linux
Bash
File Io
Scripting
Python read JSON file and modify
Python
Json
File Io
Is it possible to modify lines in a file in-place?
Python
File Io
Saving any file to in the database, just convert it to a byte array?
C#
File Io
Byte
How to search a folder and all of its subfolders for files of a certain type
Ruby
File Io
Recursion
How to set the default to unfolded when you open a file?
Vim
File Io
Default
Unfold
Java IO implementation of unix/linux "tail -f"
Java
File
File Io
Iostream
Tail
Elegant way to read file into byte[] array in Java
Java
Android
File
File Io
Java difference between FileWriter and BufferedWriter
Java
File Io
Java Io
Getting "java.nio.file.AccessDeniedException" when trying to write to a folder
Java
File Io
Io
Access Denied
How to both read and write a file in C#
C#
File Io
Filestream
Python "FileExists" error when making directory
Python
File Io
Filesystems
Queue
Cluster Computing
Why is using BufferedInputStream to read a file byte by byte faster than using FileInputStream?
Java
File Io
Inputstream
Fileinputstream
Creating application shortcut in a directory
C#
.Net
File Io
Shortcut
Size of an open file object
Python
File
File Io
Filesize
Tarfile
Unit Testing File I/O
C#
Unit Testing
File Io
Dependency Injection
Nunit
pandas to_csv output quoting issue
Python
File Io
Pandas
The easiest way to write NSData to a file
File
Cocoa
File Io
Save
Create Excel files from C# without office
C#
Excel
File Io
Office Interop
How to check if a directory is empty in Java
Java
File Io
java.io.FileNotFoundException: the system cannot find the file specified
Java
File Io
Filenotfoundexception
File Operations in Android NDK
C
File Io
Java Native-Interface
Android Ndk
How to write console output to a txt file
Java
File Io
Console
open file in "w" mode: IOError: [Errno 2] No such file or directory
Python
File Io
How do I get a file's last modified time in Perl?
Perl
File Io
PHP standard input?
Php
File Io
Stdin
How to convert InputStream to FileInputStream
Java
File Io
What is the difference between StreamWriter.Flush() and StreamWriter.Close()?
C#
.Net
File Io
Reading from a frequently updated file
Python
File Io
Generator
Fopen
Read a text file in R line by line
R
Text
File Io
ASP.Net MVC - Read File from HttpPostedFileBase without save
File
C# 4.0
File Io
asp.net Mvc-2
Stream
Error when creating a new text file with python?
Python
File
Python 3.x
File Io
Safari <input type="file" accept="video/*"> ignores mp4 files
Video
File Io
Safari
Attributes
Mp4
How do I read a specified line in a text file?
C#
String
File Io
Input
How to make file creation an atomic operation?
Python
File Io
Atomic
C++ ifstream failbit and badbit
C++
File Io
Ifstream
How can I recursively copy files of a specific pattern into a single flat folder on Windows?
Windows
File Io
Command Line
Is IntPtr.Zero equivalent to null?
C#
File Io
Asynchronous
Reading the first line of a file in Ruby
Ruby on-Rails
Ruby
Git
File Io
Capistrano
Read from a log file as it's being written using python
Python
File
Logging
File Io
Monitoring
Difference between parsing a text file in r and rb mode
Python
File Io
Text Parsing
What is the most elegant way to read a text file with c++?
C++
Text
File Io
What is the difference between read() and fread()?
C
File
File Io
Why does a read-only open of a named pipe block?
File Io
Posix
Named Pipes
Nonblocking
Fifo
How do I search for a pattern within a text file using Python combining regex & string/file operations and store instances of the pattern?
Python
Regex
File Io
Text Mining
String Parsing
What is the simplest way to write the contents of a StringBuilder to a text file in .NET 1.1?
C#
.Net
File Io
Windows Ce
Stringbuilder
watchdog monitoring file for changes
Python
File
File Io
Monitoring
Watchdog
Difference between files written in binary and text mode
C++
C
File Io
Why does open() create my file with the wrong permissions?
C
Unix
File Io
how to use tempfile.NamedTemporaryFile() in python
Python
File Io
Temporary Files
How to Write text file Java
Java
File
File Io
How to save a base64 string as an image using ruby
Ruby on-Rails
Ruby
Image
File Io
Base64
Difference between the access modes of the `File` object (ie. w+, r+)
Ruby
File
File Io
Io
HTML input type=file, get the image before submitting the form
Javascript
Html
Forms
File Io
Reading a file used by another process
C#
File Io
File Locking
Loop through files in a folder in matlab
Matlab
Loops
File Io
Csv
Saving response from Requests to file
Python
File Io
Python Requests
Can .NET load and parse a properties file equivalent to Java Properties class?
C#
Configuration
File Io
Load
Can you keep a StreamReader from disposing the underlying stream?
C#
File Io
Do I need to pass the full path of a file in another directory to open()?
Python
File Io
Absolute Path
How to read a file from jar in Java?
Java
File Io
Jar
C# Copy a file to another location with a different name
C#
File Io
Trying to create a file in Android: open failed: EROFS (Read-only file system)
Android
File
File Io
Filesystems
Android File
What is the difference between rb and r+b modes in file objects
Python
File
File Io
Pickle
How can I determine if a file is binary or text in c#?
C#
Text
File Io
Binary
How to see if a directory exists or not in Perl?
Perl
File Io
Directory
Append text to file from command line without using io redirection
Linux
Command Line
File Io
Open file ReadOnly
C#
File Io
Write output to a text file in PowerShell
Powershell
File Io
write.csv for large data.table
R
File Io
Csv
Dataframe
data.table
How to split data into trainset and testset randomly?
Python
File Io
How to fix ''UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 29815: character maps to <undefined>''?
Python
Unicode
File Io
Sqlite
Decode
LOAD DATA INFILE Error Code : 13
Mysql
File Io
Moving files between folders
R
File Io
File Copying
Why isn't there an asynchronous file delete in .net?
.Net
File Io
Asynchronous
Getting filename (or path) from fstream
C++
File Io
Fstream
Reading a .txt file using Scanner class in Java
Java
File Io
java.util.scanner
How to read existing text files without defining path
C#
.Net
Text
File Io
How to copy a file to another path?
C#
File Io
Whole text file to a String in Java
Java
File
File Io
Write file with specific permissions in Python
Python
File Io
Permissions
How to find newest file with .MP3 extension in directory?
Python
File Io
How to write to .txt files in Python 3
Python
File
Text
File Io
File.open, open and IO.foreach in Ruby, what is the difference?
Ruby
File Io
What is the best way to write the contents of a StringIO to a file?
Python
File Io
Stringio
How to source() .R file saved using UTF-8 encoding?
R
File Io
Encoding
Utf 8
Internationalization
First App Update, User Data Lost (was stored in Documents directory)
Ios
File Io
Filesystems
How to convert String to Reader in java
Java
File Io
Output ("echo") a variable to a text file
Powershell
File Io
How do relative file paths work in Eclipse?
Java
Eclipse
File Io
Relative Path
How to delete internal storage file in android?
Android
File Io
How to write to a file without overwriting current contents?
Python
File Io
What is the best way to slurp a file into a string in Perl?
Perl
String
File Io
File
Validate image from file in C#
C#
.Net
Image
File Io
can I check if a file exists at a URL?
C#
File Io
What is the difference between .m and .mat files in MATLAB
Matlab
File Io
File Extension
Java IOException "Too many open files"
Java
File Io
How to check if a given path is possible child of another path?
Java
File Io
python try:except:finally
Python
Exception
File Io
Try Catch
How do I add a resources folder to my Java project in Eclipse
Java
Eclipse
File Io
Resources
Project Organization
Check if file is already open
Java
File Io
How can I read a file even when getting an "in use by another process" exception?
C#
.Net
vb.net
File Io
Chrome downloads PNG image links. I want them to open for viewing in a new tab. How do I make Chrome do that?
Google Chrome
File Io
Png
Mime Types
PHP Data-URI to file
Php
Image
File Io
Data Uri
What's the deal with boost.asio and file i/o?
C++
Boost
File Io
Boost Asio
Matrix from Python to MATLAB
Python
Matlab
File Io
Import
Matrix
What is the Fastest Method for High Performance Sequential File I/O in C++?
C++
Performance
File Io
An integer is required? open()
Python
File Io
Integer
Argv
Does groovy have an easy way to get a filename without the extension?
Java
File Io
Groovy
File Extension
In Bash, how to find the lowest-numbered unused file descriptor?
Bash
File Io
Can't find the file created by outfile in MySQL
Php
Mysql
File
File Io
Java Files.write NoSuchFileException
Java
File
File Io
Filenotfoundexception
Override column types when importing data using readr::read_csv() when there are many columns
R
Csv
File Io
Dataframe
Dplyr