[ Previous ] [ Contents ] [ Index ] [ Next ]

ns_getcsv

Overview

Read CSV data from a file

Syntax

ns_getcsv fileId varName

Description

ns_getcsv reads one line of CSV data from the specified file and and sets the variable specified by varName to a list of the elements in that row. Any quotes in the line of data are removed. ns_getcsv returns the number of elements in the row.

If there are no more lines in the file to read, varName does not get set, and ns_getcsv returns -1 as the number of elements in the row.

A CSV file is an ASCII file containing rows of data in the following syntax:

Top of Page

[ Previous ] [ Contents ] [ Index ] [ Next ]
Copyright © 1998-99 America Online, Inc.