Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,25 @@
|
|||
'Read the input file. This assumes that the file is in the same
|
||||
'directory as the script.
|
||||
Set objfso = CreateObject("Scripting.FileSystemObject")
|
||||
Set objfile = objfso.OpenTextFile(objfso.GetParentFolderName(WScript.ScriptFullName) &_
|
||||
"\input.txt",1)
|
||||
|
||||
list = ""
|
||||
previous_line = ""
|
||||
l = Len(previous_line)
|
||||
|
||||
Do Until objfile.AtEndOfStream
|
||||
current_line = objfile.ReadLine
|
||||
If Mid(current_line,l+1,1) <> "" Then
|
||||
list = current_line & vbCrLf
|
||||
previous_line = current_line
|
||||
l = Len(previous_line)
|
||||
ElseIf Mid(current_line,l,1) <> "" And Mid(current_line,(l+1),1) = "" Then
|
||||
list = list & current_line & vbCrLf
|
||||
End If
|
||||
Loop
|
||||
|
||||
WScript.Echo list
|
||||
|
||||
objfile.Close
|
||||
Set objfso = Nothing
|
||||
Loading…
Add table
Add a link
Reference in a new issue