Top "File-io" questions

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

How to safely open/close files in python 2.4

I'm currently writing a small script for use on one of our servers using Python. The server only has Python 2.4.4 …

python file-io python-2.4
Does Java have a path joining method?

Exact Duplicate: combine paths in java I would like to know if there is such a method in Java. Take …

java file file-io path
What is the difference between rb and r+b modes in file objects

I am using pickle module in Python and trying different file IO modes: # works on windows.. "rb" with open(pickle_…

python file file-io pickle
File.Move Does Not Work - File Already Exists

I've got a folder: c:\test I'm trying this code: File.Move(@"c:\test\SomeFile.txt", @"c:\test\Test"); I …

c# file-io
Merge PDF files

Is it possible, using Python, to merge separate PDF files? Assuming so, I need to extend this a little further. …

python pdf file-io
How to delete migration files in Rails 3

I would like to remove/delete a migration file. How would I go about doing that? I know there are …

ruby-on-rails ruby-on-rails-3 file-io
Ant: How to execute a command for each file in directory?

I want to execute a command from an Ant buildfile, for each file in a directory. I am looking for …

file-io ant build-process build-automation
how to count the total number of lines in a text file using python

For example if my text file is: blue green yellow black Here there are four lines and now I want …

python file file-io sum
Write a file in UTF-8 using FileWriter (Java)?

I have the following code however, I want it to write as a UTF-8 file to handle foreign characters. Is …

java file-io unicode utf-8 file-format
Writing data to a local text file with javascript

I have created a procedure to write content to a text file in my local machine. <form id="addnew"&…

javascript jquery html file-io hta