Ask a Question related to Ruby, Design and Development.
-
Afan Shah #1
updating a File
--0-981226360-1068980951=:16169
Content-Type: text/plain; charset=us-ascii
Hi,
Could anyone please tell me how can I write to a file which already contains some data without erasing any previous data?
Afan.
---------------------------------
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard
--0-981226360-1068980951=:16169--
Afan Shah Guest
-
Updating an XML file with Flash
Hi, I have just been going trough the sample application "Bike Trips Sample" Using the XMLConnector Component to upload and navigate an xml file.... -
Updating DB from a csv file
Most text data files have one record per line. You are looping through the file as a list and specifying the vertical tab character as a delimiter... -
Updating XML file using components
I am making a simple contact list application using XML. I am trying to achieve this as little coding as possible, using components. I am using the... -
Updating a text file
R. Joseph Newton wrote: >Jan Eden wrote: > >>Hi, >> >>net wrote: >> >>>I have a text file with a records like: >>> -
updating dataset from xml file
Hello, I am new in developing with Dataset, XML, Web Services ... I want to load a xml file into a dataset and update the database with new and... -
ts #2
Re: updating a File
>>>>> "A" == Afan Shah <afan_shah@yahoo.com> writes:
A> Could anyone please tell me how can I write to a file which already
A> contains some data without erasing any previous data?
open it with "a", for example
svg% cat aa
a
svg%
svg% ruby -e 'File.open("aa", "a") {|f| f.puts "b"}'
svg%
svg% cat aa
a
b
svg%
Guy Decoux
ts Guest



Reply With Quote

