<br>
<div class="gmail_quote">
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">> DOS files used to end ^Z...it marked eof. xtod is prolly emulating this<br>> format.<br></blockquote>
<div>To be precise DOS TEXT files use ^Z as an EOF marker and CSV per se is not a "text" file. What ever is reading in the data is not expecting the ^Z as it reads the file.</div>
<div> </div>
<div>tr seems a good answer as you suggested or use open/writeline/close and create the file completely yourself and don't use xtod.</div>
<div> </div>
<div>Ken</div></div>