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.

File exists and IS directory, but listFiles() returns null

The documentation for File.listFiles() suggests that null will ONLY be returned in the case that the file calling it …

java android file io file-permissions
Design pattern for "retrying" logic that failed?

I'm writing some reconnect logic to periodically attempt to establish a connection to a remote endpoint which went down. Essentially, …

java design-patterns io
FileInputStream vs FileReader

FileReader rd=new FileReader("new.mp4"); FileWriter wr=new FileWriter("output.mp4"); int ch; while((ch=rd.read())!=-1) wr.…

java io writer
Buffered vs unbuffered IO

I learned that by default I/O in programs is buffered, i.e they are served from a temporary storage …

language-agnostic io buffering
How to use gdb with input redirection?

In the Terminal, I have: myapp < myfileinput But if I want to use gdb, gdb myapp < myfileinput It …

gdb io
How do I copy and paste data into R from the clipboard?

I have my data open in another application (e.g. a spreadsheet, like Excel, or a text editor). If I …

r io clipboard
Read a small random sample from a big CSV file into a Python data frame

The CSV file that I want to read does not fit into main memory. How can I read a few (~10…

python pandas random io import-from-csv
What is the difference between Directory.EnumerateFiles vs Directory.GetFiles?

What is the difference between Directory.EnumerateFiles vs GetFiles? Obviously one returns an array and the other return Enumerable. Anything …

c# .net directory io
fopen() fails to open stream: permission denied, yet permissions should be valid

So, I have this error: Warning: fopen(/path/to/test-in.txt) [function.fopen]: failed to open stream: Permission denied Performing …

php linux permissions io fopen
java.nio.charset.MalformedInputException: Input length = 1

I have this (stripped the HTML tags for the code example) function that builds a HTML table out of a …

java io character-encoding malformed