Top "File-io" questions

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

How to search file text for a pattern and replace it with a given value

I'm looking for a script to search a file (or list of files) for a pattern and, if found, replace …

ruby file-io
Renaming a directory in C#

I couldn't find a DirectoryInfo.Rename(To) or FileInfo.Rename(To) method anywhere. So, I wrote my own and I'm …

c# file-io directory rename
How to read numbers separated by space using scanf

I want to read numbers(integer type) separated by spaces using scanf() function. I have read the following: C, reading …

c input file-io scanf
Read a HTML file into a string variable in memory

If I have a HTML file on disk, How can I read it all at once in to a String …

c# html file-io html-parsing
java.security.AccessControlException: Access denied (java.io.FilePermission

final File parentDir = new File("S:\\PDSPopulatingProgram"); parentDir.mkdir(); final String hash = "popupateData"; final String fileName = hash + ".txt"; final File …

java security file-io file-permissions accesscontrolexception
ASP.Net MVC - Read File from HttpPostedFileBase without save

I am uploading the file by using file upload option. And i am directly send this file from View to …

file c#-4.0 file-io asp.net-mvc-2 stream
PostgreSQL: export resulting data from SQL query to Excel/CSV

I need to export the resulting data from a query in PostgreSQL to Excel/CSV. I use PostgreSQL 8.2.11. SQL error: …

postgresql file-io postgresql-copy
Create a File object in memory from a string in Java

I have a function that accepts File as an argument. I don't want to create/write a new File (I …

java file file-io
Unable to open a file with fopen()

I've been trying to open a file and output text, but I keep getting errors. So I thought I would …

c file-io fopen stdio
Python Pandas: How to read only first n rows of CSV files in?

I have a very large data set and I can't afford to read the entire data set in. So, I'm …

python pandas csv file-io