[SOLVED] How to import a CSV file with a unique delimiter character

I just use .split on the line and then parse it that way.

import os.path
path = system.file.openFile("csv")
myfile = open(path, "r")
for line in myfile:
    sline = line.split('|')
    var1 = sline[1]
    var2 = sline[2]

etc.

1 Like