Article View: borland.public.jbuilder.java.language
Article #8358Write a line
From: Ahmad Noori
Date: Mon, 26 Mar 2001 18:53
Date: Mon, 26 Mar 2001 18:53
12 lines
1254 bytes
1254 bytes
Hello, I have a txt file that I want to write to it one line at a time. I sometimes want to write in the middle of the file and sometimes at the beginning. Using write(string, int, int), will replace the whole file, readline() reads one line at a time, does anyone knowof a method that could write one line at a time. Thanks a lot Ahmad Noori SAIC
Technical Details
Message-ID:
<3ABF903A.54E8FC0@SAIC.COM>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!sjc-peer.news.verio.net!news.verio.net!nntp2.cerf.net!nntp3.cerf.net!mvb.saic.com!cpns1.saic.comShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,95abce2b73e81abc,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-26 10:52:23 PST Message-ID: <3ABF903A.54E8FC0@SAIC.COM> Date: Mon, 26 Mar 2001 13:53:46 -0500 From: Ahmad Noori <Ahmad.Y.Noori@SAIC.COM> Organization: SAIC X-Mailer: Mozilla 4.76 [en] (WinNT; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language Subject: Write a line Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 10.43.42.10 X-Original-NNTP-Posting-Host: 10.43.42.10 X-Trace: 26 Mar 2001 10:51:20 -0800, 10.43.42.10 Lines: 14 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!cyclone2.usenetserver.com!news-out.usenetserver.com!sjc-peer.news.verio.net!news.verio.net!nntp2.cerf.net!nntp3.cerf.net!mvb.saic.com!cpns1.saic.com