Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text noshow pretext 4 - extra carriage return line feed

Status
Not open for further replies.

samsnead

Programmer
Sep 3, 2005
100
CA
I create a text file for each user using -
Store Fcreate(lcfilename) To _Text && Create low-level file

I then output text to the file using text endtext

TEXT NOSHOW PRETEXT 4
<?xml version="1.0" ?>
<!DOCTYPE ledesxml>

etc.

The file is created and all xml is ok but there is an extra carriage return line feed at start of file - I have tried using PRETEXT 7, also tried without pretext - no luck getting rid of it. Is there easy way to delete it or some way to get rid of it.
 
Code:
m.cFileName="c:\test.txt"

SET TEXTMERGE ON TO (m.cFileName) NOSHOW PRETEXT 7
	\\FILE: <<m.cFileName>>
	\
	\<?xml version="1.0" ?>
	\	<!DOCTYPE ledesxml>
	\
	\	etc.
SET TEXTMERGE OFF
SET TEXTMERGE TO 

MODIFY FILE c:\test.txt NOWAIT
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top