Hello!
Can start writing this straight away. I suppose the file names, as well as ceparator are to be put in variables?
What it should do if it encounters the end of 'data file - 2' while still not reached the end of 'data file - 1'? Also what should it do it it winds more than a single column in any row of 'data file - 2' - pull only the left-most column, pull everything, do something else?
There's no 'insert in midst of file stream' capability in php(with right-shifting the trailing portinon of the file, so not to overwrite) so teh only option would be to write to a intermittent file then replace the 'data file - 1' when completed.
Regards,
Dobri