Investigation SET TEXTMERGE and \\ and <<>> Not often a need to use the low level IO functions
-- Alan Bourke alanpbourke (at) fastmail (dot) fm On Fri, 19 Sep 2014, at 08:57 PM, Kevin Cully wrote: > Hello Fox Experts! > > I'm writing a quick utility to manipulate a text file. Here's the > (simplified) program I've got so far: > > sGedCom = "Gedcom1.ged" > CREATE CURSOR c_GedCom (cType C(7), sF1 C(200), sF2 C(200) ) > APPEND FROM (sGedCom) TYPE SDF > REPLACE ALL cType WITH "1 _CENN" FOR cType = "2 _CENN" > sGedCom = FORCEEXT( sGedCom, "GED1" ) > COPY TO (sGedCom) TYPE SDF > > The Gedcom1.ged has almost a million records but it only takes about 3 > seconds to load the file, do the replace, and export. Nice. > > MY PROBLEM: the exported file has the trailing spaces on each line while > doing the SDF export. I basically want each line to be ALLTRIM'd. I > can't find the right setting or parameter to make that happen. > > I can always do a FWRITE() for each line, but I figure there's a built > in way to do this. > > Thanks! > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/1411166614.2982448.169614113.42909...@webmail.messagingengine.com ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

