Access keys

TextFile2Array

Kind of class: class
Inherits from: TextFile2Collection < Dispatcher
Author: Arthur Clemens
Classpath: data.filedatatransform.TextFile2Array
File last modified: Tuesday, 27 September 2005, 10:14:04
Transforms the contents of a text file to an array.
By default the text file is split on newline characters, but you can pass another delimiter in the constructor.

Important: the file's text file should have Unix or DOS line endings.
Events broadcast to listeners:
TextFile2ArrayEvent with type: FINISHED

Summary

Constructor
Instance properties
Instance properties inherited from TextFile2Collection
Instance methods
Instance methods inherited from TextFile2Collection
Event handlers
Event handlers inherited from TextFile2Collection

Constructor

TextFile2Array

function TextFile2Array (
inFileUrl:String, inListener:Object, inArray:Array, inItemDelimiter:String)
Creates a new TextFile2Array instance.
Parameters:
inFileUrl :
url of the text file with data to parse
inListener :
(optional) object that receives a TextFile2ArrayEvent.FINISHED after parsing
inCollection :
(optional) existing Array to store the data in; if not provided a new Array will be created
inItemDelimiter:
(optional) character to split each line in separate property components; default a carriage return ("\r")