Skip to content

Instantly share code, notes, and snippets.

@x1alpha76
x1alpha76 / ReadCSV.vbs
Created July 2, 2015 09:57
Visual Basic Script function for reading CSV strings
'Does not support multiline
'
'Example usage
'Const ForReading = 1
'Set objFSO = CreateObject("Scripting.FileSystemObject")
'Set objFile = objFSO.OpenTextFile("test.csv", ForReading)
'Do Until objFile.AtEndOfStream
' fields = ReadCSV(objFile.ReadLine)
' WScript.Echo fields(0)
'Loop