Facebook

Course Name Start Date Time Duration Registration Link
Selenium with Java and API Test Automation 16th September 2020 7.30 AM IST to 9:00 AM IST 45 days ClickHere
Please mail To sudhakar@qtpsudhakar.com to Register for training

Monday, July 6, 2009

Read CSV File Data

'******************************************************
Dim file,fso,f,fData,arrData,CsvValue
file="C:\sample.csv"
 
Set fso=createobject("scripting.filesystemobject")
Set f  = fso.OpenTextFile(file)
 
While not f.AtEndOfStream
fData=f.ReadLine
arrData=split(fData,",")
For Each CsvValue In arrData
MsgBox CsvValue
Next
Wend
f.Close
Set fso=Nothing
'******************************************************

No comments :

Post a Comment