View in color | License | Download script | History | Other scripts by: bohdan |
30-Apr 12:17 UTC
[0.047] 10.679k
[0.047] 10.679k
convert-csv.rREBOL [
Title: "Comma-Seperated-Values to REBOL converter"
Date: 16-Jun-1999
File: %convert-csv.r
Author: "Bohdan Lechnowsky"
Purpose: "^/ Convert CSV files to REBOL blocks^/ "
Email: %bo--rebol--com
library: [
level: 'intermediate
platform: none
type: 'tool
domain: [file-handling DB text-processing]
tested-under: none
support: none
license: none
see-also: none
]
]
csv: read/lines to-file ask "Filename to convert from CSV: "
block: make block! 100
headings: parse/all first csv ","
foreach line next csv [append block parse/all line ","]
save to-file ask "Filename to save to: " head insert/only block headings Notes
|