Path: csiph.com!aioe.org!.POSTED!not-for-mail From: "CarMas" 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: References: 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 "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