Top "File-io" questions

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

Does reading an entire file leave the file handle open?

If you read an entire file with content = open('Path/to/file', 'r').read() is the file handle left open …

python file-io filehandle
What's the fastest way to read a text file line-by-line?

I want to read a text file line by line. I wanted to know if I'm doing it as efficiently …

c# .net performance file-io text-files
What is simplest way to read a file into String?

I am trying to read a simple text file into a String. Of course there is the usual way of …

java file file-io
How do I check if file exists in jQuery or pure JavaScript?

How do I check if a file on my server exists in jQuery or pure JavaScript?

javascript jquery file-io
Clearing <input type='file' /> using jQuery

Is it possible to clear an <input type='file' /> control value with jQuery? I've tried the following: $('#…

javascript jquery html file-io forms
Read and write a String from text file

I need to read and write data to/from a text file, but I haven't been able to figure out …

file-io swift
Python open() gives FileNotFoundError/IOError: Errno 2 No such file or directory

For some reason my code is having trouble opening a simple file: This is the code: file1 = open('recentlyUpdated.yaml') …

python file file-io filenotfoundexception file-not-found
How to create a temporary directory/folder in Java?

Is there a standard and reliable way of creating a temporary directory inside a Java application? There's an entry in …

java file file-io directory temporary-directory
Read .mat files in Python

Is it possible to read binary MATLAB .mat files in Python? I've seen that SciPy has alleged support for reading .…

python matlab file-io scipy mat-file
java.io.FileNotFoundException: the system cannot find the file specified

I have a file named "word.txt". It is in the same directory as my java file. But when I …

java file-io filenotfoundexception