Top "File" questions

A block of arbitrary information, or resource for storing information, accessible by the string-based name or path.

Writing a Python list of lists to a csv file

I have a long list of lists of the following form --- a = [[1.2,'abc',3],[1.2,'werew',4],........,[1.4,'qew',2]] i.e. the values …

python file csv file-io python-2.7
Reading a resource file from within jar

I would like to read a resource from within my jar like so: File file; file = new File(getClass().getResource("/…

java file jar resources embedded-resource
VBA check if file exists

I have this code. It is supposed to check if a file exists and open it if it does. It …

excel vba file file-exists
Reading a file line by line in Go

I'm unable to find file.ReadLine function in Go. I can figure out how to quickly write one, but I …

string file parsing go line
How to upload a file in Django?

As a newbie to Django, I am having difficulty making an upload app in Django 1.3. I could not find any …

django file upload
download file using an ajax request

I want to send an "ajax download request" when I click on a button, so I tried in this way: …

javascript php ajax file download
How do I add PHP code/file to HTML(.html) files?

I can't use PHP in my HTML pages. For example, index.html. I've tried using both: <? contents ?> and &…

php html file
Copy files from one directory into an existing directory

In bash I need to do this: take all files in a directory copy them into an existing directory How …

bash file directory copy cp
What is the perfect counterpart in Python for "while not EOF"

To read some text file, in C or Pascal, I always use the following snippets to read the data until …

python file iteration eof
Python 2.7: Print to File

Why does trying to print directly to a file instead of sys.stdout produce the following syntax error: Python 2.7.2+ (default, …

python file python-2.7