A
arno
Hi,
I have been asked to do some work on a elaborate vba system. One of its
features is reading the last line of a textfile, updating a counter, and
adding a new line. In the current implementation, this text-file is read
into Word, and using some nifty command, Word is told to jump to the end
of the text/paragraph (?).
My question is, if there is a penalty performance-wise when opening a
text-file in Word, and whether it might be faster to just use a
TextStream.
If the latter, my next question is how to best deal with a situation in
which some user has added empty lines to the end of it containing just
line-breaks (enter-enter-etc.). They shouldn't, buy hey, end-users ;-).
EOF would be 'too far', and checking every line might be slower than the
current method.
My gut-feeling tells me it is better to use a database system for this,
but I am not at liberty to change too much, and I might even be wrong.
I suppose I am not so much looking for answers, but rather for
guidelines/suggestions/best practices.
tia
arno
I have been asked to do some work on a elaborate vba system. One of its
features is reading the last line of a textfile, updating a counter, and
adding a new line. In the current implementation, this text-file is read
into Word, and using some nifty command, Word is told to jump to the end
of the text/paragraph (?).
My question is, if there is a penalty performance-wise when opening a
text-file in Word, and whether it might be faster to just use a
TextStream.
If the latter, my next question is how to best deal with a situation in
which some user has added empty lines to the end of it containing just
line-breaks (enter-enter-etc.). They shouldn't, buy hey, end-users ;-).
EOF would be 'too far', and checking every line might be slower than the
current method.
My gut-feeling tells me it is better to use a database system for this,
but I am not at liberty to change too much, and I might even be wrong.
I suppose I am not so much looking for answers, but rather for
guidelines/suggestions/best practices.
tia
arno