| |
hari_vbscript
Posts: 15
Score: 0
Joined: 8/10/2007
Status: offline
|
Hi I am using Split function in VB script. I have two line of records in the input file. Now i need to store those data in an array. Can anyone tell me the delimiter for new line? Please go thro the following piece of code: Dim objFSO,objFile,strLine,blnFound,strContentFound Dim strContents,intStart,strWord,arrWords,strFinalText,strWord1 Set objFSO = CreateObject("Scripting.FileSystemObject") Set objFile = objFSO.OpenTextFile("C:\Scripts\p83700807022603.txt") strContents = objFile.ReadAll objFile.Close arrWords = Split(strContents,"~") In the Split function, now i need to give the newline character '\n' is not working
|
|