🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2310

TABs and RETURNs

#2310
From: kkaal
Date: Thu, 29 Mar 2001 08:39
19 lines
1588 bytes
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: <99usde$fq1$00$1@news.t-online.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!europa.netcrusader.net!193.162.153.122!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,a0057b4c119c768e,start
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-03-29 00:46:05 PST
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!europa.netcrusader.net!193.162.153.122!news.tele.dk!194.25.134.62!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail
From: "kkaal" <kkaal@t-online.de>
Newsgroups: borland.public.jbuilder.java.api
Subject: TABs and RETURNs
Date: Thu, 29 Mar 2001 10:39:15 +0200
Organization: T-Online
Lines: 21
Message-ID: <99usde$fq1$00$1@news.t-online.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Trace: news.t-online.com 985855215 00 16193 ina+S9bS3Ayer 010329 08:40:15
X-Complaints-To: abuse@t-online.com
X-Sender: 520067114078-0001@t-dialin.net
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