Article View: borland.public.jbuilder.database
Article #325Re: TextDataFile not saving with \r\n characters at end of line
From: John Moore (TeamB)
Date: Mon, 19 May 2008 01:32
Date: Mon, 19 May 2008 01:32
41 lines
2141 bytes
2141 bytes
It appears, looking at the source code, that it may get that setting from the schema file. separator = schemaFile.separator; ..during the load metadata call.. I don't have the time to dig deeper tonight but if that does not make any sense.. let me know and will.. (dig deeper, that is..) Hope that gets you going in the right direction.. John.. stevep wrote: > Hi > > Can somebody tell me how I can control the end of line character on a save of TextDataFile class > > sample code does something like... > > tableDataSet1.getDataFile().save(tableDataSet1); > > is there a property to control the end of each record. On a windows machine it is only adding a \n to the end of record? > > Additional information.. the System property line.seperator is set to \r\n. > > So there seems to be a bug in TextDataFile class? > > -- ============================================= TeamB are volunteer helpers. Please DO NOT REPLY VIA EMAIL! Post all questions and replies to this newsgroup ONLY For papers on DataExpress, Applets, JSP, and Web Development go to: http://www.microps.com/mps/paperFAQ.html ====================================================
Technical Details
Message-ID:
<4830d89e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed.datemas.de!news.isoc.lu!newsgroups.borland.com!not-for-mailReferences:
<47d8ee72$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,fdd79e7792a8718b X-Google-Attributes: gid1073da,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Date: Sun, 18 May 2008 18:32:16 -0700 From: "John Moore (TeamB)" <jbm@microps.com> User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.database Subject: Re: TextDataFile not saving with \r\n characters at end of line References: <47d8ee72$1@newsgroups.borland.com> In-Reply-To: <47d8ee72$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 207.137.13.175 Message-ID: <4830d89e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1211160734 207.137.13.175 (18 May 2008 18:32:14 -0700) Lines: 41 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.germany.com!newsfeed.datemas.de!news.isoc.lu!newsgroups.borland.com!not-for-mail