Home Page   We Generate Your Software.
Products Services Company Technology Demo Contact Site Map Search
The Somusar/SoProTech[tm] Booklet Series
Volume VI

"somusar/Tefigel: Reference Guide"

Printer friendly

1. Introduction
2. File Sections
3. Commands and Instructions
4. Markers
6. Special Characters
7. Variables
8. Arithmetic Computation
9. Boolean Computation
10. Control Flow
11. Subroutines and Functions
12. Built-in Functions
13. Input and Output
14. Packages and Libraries
15. Tag File Processing
16. CSV File Processing
16.1 Purpose
16.2 Usage
16.3 Description
17. Filters
18. Links and Traps
19. Name Spaces
20. Miscellaneous
21. Further Reading

Chapter 16 - CSV File Processing

16.1 - Purpose        top

Process a comma-separated value (CSV) file (typically, a file containing row-column data or metadata) through a Tefigel processor (subroutine).

16.2 - Usage        top

Process a CSV file through a user-defined CSV subroutine (a Tefigel script):

   [call] csv_file_process(<CSV-file>,<CSV-subroutine>,<value-separator>)

16.3 - Description        top

The built-in subroutine csv_file_process reads the <CSV-file> and processes each line of its contents through the user-defined Tefigel script <CSV-subroutine>. Both <CSV-file> and <CSV-subroutine> are specified as <file-reference>'s. Parameter <value-separator> specifies the character separating each value in each line of <CSV-file>.

When processing <CSV-file>, Tefigel calls for each input line the specified <CSV-subroutine> passing the input line as a <parameter-list>, so that each value from the input line appears as a distinct input argument to the <CSV-subroutine>. Tefigel automatically sets the <special-function> argdelim to <value-separator>.

[Previous chapter]    [Next chapter]    [Back to top]

http:// www.somusar.com  / doc  / booklets  / tefigel_ref  - Powered by SoProMach
Copyright © 2003-2012 Somusar - Trademarks - Legal - Privacy - Webmaster