Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

load a CSV file (See related posts)

    read-csv: func [
        "Load and parse a delimited text file."
        file [file!]
        /with
            delimiter
        /local lines
    ][
        if not with [delimiter: ","]
        lines: read/lines file
        forall lines [
            change/only lines parse/all first lines delimiter
        ]
        ; head lines  ;<- needed for View < 1.3
    ]

You need to create an account or log in to post comments to this site.


Click here to browse all 5140 code snippets

Related Posts