Advertisement
Advertisement
| 07.24.2008 at 09:54AM PDT, ID: 23592815 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: |
dim objFSO: set objFSO=CreateObject("Scripting.FileSystemObject")
dim objR, objW
dim strLine, strChunk
'Text file you are using
set objR=objFSO.OpenTextFile("d:\DRAM Investigation Project\REQINFO.txt",1)
'Text file that will be created
set objW=objFSO.CreateTextFile("d:\DRAM Investigation Project\target.txt",true)
strChunk=""
while not objR.AtEndOfStream
strLine=objR.ReadLine
strChunk=strChunk & strLine
while len(strChunk)>512
objW.WriteLine(Left(strChunk, 512))
strChunk=Mid(strChunk,513)
wend
wend
' Write last chunk
objW.WriteLine strChunk
objR.Close
objW.Close
|