Hello,
I have a build script that creates a new file (using the concat task) consisting of todays results, followed by the history results file. This new file is now considered to be the history results file. However if the history file already contains todays data (i.e. this process has already been run today), then I don't want to append all of the history file. I only want from line 12 onwards in the history file (everything before today).
Does anyone have any idea as to how I can achieve this using
Ant and what tasks I should be investigating?
Manually, I can determine whether the history file has todays data in it, since the date I am interested in will be at line 2 of the history file, but I have no idea how to do this sort of thing using ant.
Thanks in advance,
Francis