How to read data from CSV file ?
Tags:
Question ID: 105809
0
0
Marked as spam
Posted by (Questions: 17, Answers: 7)
Asked on January 16, 2015 8:49 am
41 views
Answers (2)
1
Private answer

Hi Karthik,

Use can try this by file system object.
Below you can find a sample code

Dim SourceFile,objFso,f,FileData,arrData,Value
SourceFile=''C:sample.csv'' \ provide you csv file path
Set objFso=createobject(''scripting.filesystemobject'')
Set f = objFso.OpenTextFile(SourceFile)
While not f.AtEndOfStream
FileData=f.ReadLine
arrData=split(FileData,'','')
For Each FileData In arrData
Print Value
Next
Wend
f.Close
Set objFso=Nothing

Marked as spam
Posted by (Questions: 7, Answers: 8)
Answered on January 16, 2015 11:22 am
0
Private answer

Thank you

Marked as spam
Posted by (Questions: 17, Answers: 7)
Answered on January 16, 2015 11:28 am
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top