I have a text file with following structure :-
C:\Users\abc\Desktop\New Folder\sample.txt
AccountName->AbcPos
AccountName->dblLayer
queryAccount->qskxyz
queryName->qixyz
queryName->abc
queryName->def
next
C:\Users\abc\Desktop\New Folder\New folder\sample3.txt
AccountName->AbcPos
AccountName->dblLayer
queryAccount->qskxyz
queryName->qixyz
AccountName->Names
AccountName->prelLayer
queryAccount->serchTerm
queryName->myName1
next
C:\Users\abc\Desktop\New Folder\sample1.txt
AccountName->AbcPos
AccountName->dblLayer
queryAccount->qskxyz
queryName->qixyz
next
C:\Users\abc\Desktop\New Folder\sample2.txt
AccountName->AbcPos
AccountName->dblLayer
queryAccount->qskxyz
queryName->qixyz
queryName->abc
queryName->def
AccountName->Names
AccountName->prelLayer
queryAccount->serchTerm
queryName->myName1
next
I have to show this information in tabular format on a webpage using vbscript. The table should be like:-
+------+--------------+--------------+--------------+-----------+
| Path | AccountName1 | AccountName2 | QueryAccount | QueryName |
+------+--------------+--------------+--------------+-----------+
|C:\...| AbcPos | dblLayer | qskxyz | qixyz |
+------+--------------+--------------+--------------+-----------+
|C:\...| AbcPos | dblLayer | qskxyz | abc |
+------+--------------+--------------+--------------+-----------+
|C:\...| AbcPos | dblLayer | qskxyz | def |
+------+--------------+--------------+--------------+-----------+
|C:\3..| AbcPos | dblLayer | qskxyz | qixyz |
+------+--------------+--------------+--------------+-----------+
|C:\3..| Names | prelLayer | qskxyz | abc |
+------+--------------+--------------+--------------+-----------+
|C:\3..| AbcPos | dblLayer | searchTerm | myName1 |
+------+--------------+--------------+--------------+-----------+
Currently I am just reading text file with vbscript but need to show it in tabular format.
Set dict = CreateObject("Scripting.Dictionary")
Set file = fso.OpenTextFile ("c:\test.txt", 1)
row = 0
Do Until file.AtEndOfStream
line = file.Readline
dict.Add row, line
row = row + 1
Loop
file.Close
I can not post my complete code here as I am not able to copy from my environment.
To get you started wrt the parsing of your (one and only) input file:
As in:
output:
Can't help you with ASP, sorry.
My Implementation is like :-