PackageDescription: VRFileReading


VR File Reading

Last published: October 20, 2009 by 'jamesr'

Defines 5 Classes
Extends 5 Classes


This package contains a simple text file parser. It is built to handle files that have fixed delimiters - commas and CRs, for instance, and a fixed structure - field separators and record separators. The class to examine is VRFileReader. You can supply 'type' information by placing a class side method - #typeDef - into the class that you are parsing the file into. Usage:

VRFileReader read: 'someFile.txt' into: MyModel.

The contents will be parsed into a collection of MyModel objects.