hello everybody!
i hope you understand what i write
because i´m form germany and i´m very bad in english
i have a problem in vbscript.
there is a log file of a data base, with rather much entries.
i want to check the LAST lines (you can choose how much lines you want to check) of these file if there is a line in which stands "ORA-......"
so the program works already.
BUT each line of this file gets an entry on an array.
so the file is very long and this leads to an very big array with much entrys.
but i don´t need all entrys, because i only want to check the last (for example 100 )lines of this file.
Now to my QUESTION.
is it possible to read this file starting backwards.
so because then the array is as big as i need it.
(then just the lines i want to check will be entried in this array)
in C i konw how to read a file starting backwards.
but i don´t find it how to do this in VbScript.
pleas help me if you know how to do this
Stocki
i hope you understand what i write
because i´m form germany and i´m very bad in english
i have a problem in vbscript.
there is a log file of a data base, with rather much entries.
i want to check the LAST lines (you can choose how much lines you want to check) of these file if there is a line in which stands "ORA-......"
so the program works already.
BUT each line of this file gets an entry on an array.
so the file is very long and this leads to an very big array with much entrys.
but i don´t need all entrys, because i only want to check the last (for example 100 )lines of this file.
Now to my QUESTION.
is it possible to read this file starting backwards.
so because then the array is as big as i need it.
(then just the lines i want to check will be entried in this array)
in C i konw how to read a file starting backwards.
but i don´t find it how to do this in VbScript.
pleas help me if you know how to do this
Stocki