T
Trond Hoiberg
I have a lil problem i am struggling with.
I have a folder LOGFILES that contains subfolder. Like this:
MACHINE1
--DATE1
--DATE2
--DATE3
MACHINE2
--DATE1
--DATE2
--DATE3
Within the folders DATEx there are files. log files. Is there a way i can
create a class that builds up an array or hastable like this:
Machine1 Date1 log1
Machine1 Date2 log1
Machine1 Date3 log1
Machine1 Date3 log2
Machine1 Date3 log3
Machine2 Date1 log1
Machine2 Date1 log2
Machine2 Date1 log2
Machine2 Date2 log1
Machine2 Date3 log1
The reason why i want to do this is because i want to populate a TreeView
control with these data.
The optimal solution would be to generate an object pr file and store that
as a collection in a date object. And the date object as a collection in a
MACHINE object. That way i can populate the treeView control with data from
inside the file insted of the filename.
Like this:
MACHINE1
--DATE1
----log1
--DATE2
----log1
--DATE3
----log1
----log2
----log3
MACHINE2
--DATE1
----log1
and so on
If anyone has a tip or can point me to info related to this I will
appreciate it
best regards
Trond
I have a folder LOGFILES that contains subfolder. Like this:
MACHINE1
--DATE1
--DATE2
--DATE3
MACHINE2
--DATE1
--DATE2
--DATE3
Within the folders DATEx there are files. log files. Is there a way i can
create a class that builds up an array or hastable like this:
Machine1 Date1 log1
Machine1 Date2 log1
Machine1 Date3 log1
Machine1 Date3 log2
Machine1 Date3 log3
Machine2 Date1 log1
Machine2 Date1 log2
Machine2 Date1 log2
Machine2 Date2 log1
Machine2 Date3 log1
The reason why i want to do this is because i want to populate a TreeView
control with these data.
The optimal solution would be to generate an object pr file and store that
as a collection in a date object. And the date object as a collection in a
MACHINE object. That way i can populate the treeView control with data from
inside the file insted of the filename.
Like this:
MACHINE1
--DATE1
----log1
--DATE2
----log1
--DATE3
----log1
----log2
----log3
MACHINE2
--DATE1
----log1
and so on
If anyone has a tip or can point me to info related to this I will
appreciate it
best regards
Trond