File Type

How to create a temporary file to store data

Create temporary files

Your application has to write data out in a temporary file to reprocess them before rendering to users. The file will be created temporarily and swept our when the application restarts or shuts down. How do we create such a ...

Lire la suite...

How to find the mime type of a file in Python

A media type (also known as a Multipurpose Internet Mail Extensions or MIME type) is a standard that indicates the nature and format of a document, file, or assortment of bytes. It is defined and standardized in IETF’s RFC 6838. The screenshot showing a list ...

Lire la suite...

Lire et écrire avec fichier CSV dans Python

An example of CSV format

It is possible to read and write CSV (comma separated values) files using Python 2.4 Distribution. Like most languages, file operations can be done with Python. Writing a CSV file with Python can be done by importing the CSV module and creating a write ...

Lire la suite...