Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > it.comp.java > #9239

Re: Aggiungere testo a un file

Path csiph.com!aioe.org!.POSTED!not-for-mail
From "CarMas" <carmas@jpknet.com>
Newsgroups it.comp.java
Subject Re: Aggiungere testo a un file
Date Mon, 24 Jul 2017 12:53:06 +0200
Organization Aioe.org NNTP Server
Lines 18
Message-ID <ol4jiu$13jf$1@gioia.aioe.org> (permalink)
References <okl4c9$vqa$1@gioia.aioe.org>
NNTP-Posting-Host AN0N2ym1317RPhvtaIWvww.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; format=flowed; charset="iso-8859-15"; reply-type=response
Content-Transfer-Encoding 7bit
X-Complaints-To abuse@aioe.org
Importance Normal
X-MSMail-Priority Normal
X-Notice Filtered by postfilter v. 0.8.2
X-MimeOLE Produced By Microsoft MimeOLE V15.4.3555.308
X-Priority 3
X-Newsreader Microsoft Windows Live Mail 15.4.3555.308
Xref csiph.com it.comp.java:9239

Show key headers only | View raw


"Oliviero"  ha scritto nel messaggio news:okl4c9$vqa$1@gioia.aioe.org...

> Ho aperto un file di testo in scrittura con le seguenti istruzioni:
> File f;
> FileWriter fw;
> PrintWriter writer;
> come posso fare per scrivere testo sul file partendo dal fondo?

Immagino che hai aperto il FileWriter col File. Se guardi bene, FileWriter 
ha altri costruttori, per esempio:
FileWriter(File file, boolean append)
se usi questo, fa quello che vuoi fare tu (quoto la documentazione: If the 
second argument is true, then bytes will be written to the end of the file 
rather than the beginning).

Saluti
CarMas

Back to it.comp.java | Previous | NextPrevious in thread | Find similar


Thread

Aggiungere testo a un file Oliviero <abcxyz@micso.net> - 2017-07-18 16:01 +0200
  Re: Aggiungere testo a un file Jack <jack4747@gmail.com> - 2017-07-18 07:18 -0700
  Re: Aggiungere testo a un file "CarMas" <carmas@jpknet.com> - 2017-07-24 12:53 +0200

csiph-web