>I'm using the TEXTMERGE command to combine several text files into one as follows:
>
>
>SET TEXTMERGE ON TO myfile.txt ADDITIVE
>
>FOR m.liFile = 1 TO 10
> * variable 'sometextfile' below will change to a different filename...
> m.lcFileContent = FILETOSTR(sometextfile)
> TEXT PRETEXT 1+2+4
> <<m.lcFileContent>>
> ENDTEXT
>ENDFOR
>
>=CLOSE(_TEXT)
>
>
>After running this code, the resulting file always has an empty line preceeding the contents of each individual line even though I've specified the PRETEXT value of 2.
>
>Is this a bug or am I screwing up somewhere?
>
>TIA
>Mike
I think it's a bug and I even read a blog very recently about it - forgot where (I think in Doug Hennig blog). Anyway, try combining textmerge and text into one command.
Actually, the problem is different
http://doughennig.blogspot.com/2010/02/try-catch-and-text-merge.html
If it's not broken, fix it until it is.
My Blog