Ok, the title is a "little" bit confusing.. (well, so is the question..)
I can't say what my question is, it's better to show you an example:
I have a file named "storebox.txt"
It contains the following lines:
C
M
D
--End of the file (this isn't part of the "storebox.txt")--
Now, there is a program that is always adding line to the storebox..
I need a code that would determinate how many lines there are in the text file and I need that code to copy all of them, I've been using this:
Code: Select all
> storebox.txt (
set /p line1=
set /p line2=
set /p line3=
)
But has I said, there is a program that adds line to the file, so there are more then 3 line in the file after the program modifies it.
Please help and thanks!