09-10-2009, 12:18 AM
@Prabhu : try with the below ex.
For Reading the values from Textfiles :
For Reading the values from Textfiles :
Code:
Dim fso, ts
Const ForReading = 1
File_path="C:\D & S\Users\...\XYZ.txt"
Set fso = CreateObject("Scripting. FileSystemObject")
Set ts = fso.OpenTextFile(File_path,ForReading,True)
msgbox ts.ReadLine
ts.close