Here. One size fits all. This script will take a CSV file and spit out
files for rows, columns, and cells. Take your pick. Comment out the
ones you don't want.
set fso=CreateObject("Scripting.FileSystemObject")
set inFile=fso.OpenTextFile("example.csv")
csv=inFile.readAll
inFile.close
set inFile=nothing
rows=split(csv,vbCRLF)
cols=split(rows(0),",")
dim heads()
redim heads(ubound(cols))
for n=0 to ubound(cols)
set heads(n)=fso.CreateTextFile("Col_" & n & ".txt")
next
for m=0 to ubound(rows)
if len(rows(m)) then
set row=fso.CreateTextFile("Row_" & m & ".txt")
row.writeLine rows(m)
row.close
set row=nothing
for n=0 to ubound(cols)
set cel=fso.CreateTextFile("Cell_" & m & "x" &n&".txt")
cel.writeLine split(rows(m),",")(n)
cel.close
set cel=nothing
heads(n).writeLine split(rows(m),",")(n)
next
end if
next
for n=0 to ubound(cols)
heads(n).close
set heads(n)=nothing
next
--
Crash