Article View: borland.public.jbuilder.java.api
Article #2323Re: TABs and RETURNs
From: Michael Rachow
Date: Tue, 03 Apr 2001 13:34
Date: Tue, 03 Apr 2001 13:34
59 lines
2356 bytes
2356 bytes
Try using StringBuffer instead String Val1 = "my string"; String Val2 = "is not empty"; String Sep = "\t"; StringBuffer sb = new StringBuffer(); sb.append(Val1); sb.append(Sep); sb.append(Val2); System.out.println(sb.toString()); Greetings Michael "kkaal" <kkaal@t-online.de> schrieb im Newsbeitrag news:9a9ok8$710$02$1@news.t-online.com... > I tried this and got > > "my string \ is not empty" > > Does the escape-sequences depend on local setting of my win2k?? > > Klaus > > > > "Nabin Thomas" <viewmycard@foremail.nospamplease> schrieb im Newsbeitrag > news:3AC736B9.73BE94F@foremail.nospamplease... > > try > > String Val1 = "my string "; > > String Val2 = " is not empty"; > > char Sep = '\t'; > > > > String MyResult = Val1 + Sep + Val2; > > > > > > kkaal wrote: > > > > > Hi, > > > what is that: I am trying to fit escape chars into my text like this > > > > > > String Val1 = "my string "; > > > String Val2 = " is not empty"; > > > String Sep = "\t"; > > > > > > String MyResult = Val1 + Sep + Val2; > > > > > > When I write this to a bufferedWriter - file, I expect under Windows, > when I > > > open this file with MSWord that the Val1 and Val2 are separated by a > > > Tabulator. > > > But this is not the case. I get: "my string \t is not empty" > > > > > > How do I fit in escape-characters into a text? > > > > > > Thanks for help. > > > > > > Klaus > > > >
Technical Details
Message-ID:
<3ac9d4a8_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnewsReferences:
<99usde$fq1$00$1@news.t-online.com> <3AC736B9.73BE94F@foremail.nospamplease> <9a9ok8$710$02$1@news.t-online.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,a0057b4c119c768e X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2001-04-03 07:34:03 PST From: "Michael Rachow" <mrachow@BeraCom.de> Newsgroups: borland.public.jbuilder.java.api References: <99usde$fq1$00$1@news.t-online.com> <3AC736B9.73BE94F@foremail.nospamplease> <9a9ok8$710$02$1@news.t-online.com> Subject: Re: TABs and RETURNs Date: Tue, 3 Apr 2001 15:34:17 +0200 Lines: 61 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 62.226.214.108 Message-ID: <3ac9d4a8_1@dnews> X-Trace: dnews 986305704 62.226.214.108 (3 Apr 2001 06:48:24 -0700) Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.uni2.dk!newssuck.uni2.dk!dnews