A Python routine to read class-instance data from flat files

Allan M. Stavely

April 18, 2006; last revised May 1, 2006


Table of Contents

1. Introduction
2. Usage
3. Implementation

1. Introduction

This document presents a routine in the Python language that will create instances of a given class and populate those instances with data from a flat file. This provides a quick and easy way to import data into a Python program, where that data is in a file that was created by hand or by some other application.