Look at the documentation for whatever function you are using to write data to the file. It should be pretty obvious (look for an "append" argument).
Otherwise you'll have to provide more information, such as a short simple example of what you have tried. -Don -- Don MacQueen Lawrence Livermore National Laboratory 7000 East Ave., L-627 Livermore, CA 94550 925-423-1062 On 1/6/12 3:49 AM, "Joao Fadista" <joao.fadi...@med.lu.se> wrote: >Hi, > >I would like to know how can I keep adding data to a file while doing a >loop and without deleting the data of the previous iteration. Thanks. > >______________________________________________ >R-help@r-project.org mailing list >https://stat.ethz.ch/mailman/listinfo/r-help >PLEASE do read the posting guide >http://www.R-project.org/posting-guide.html >and provide commented, minimal, self-contained, reproducible code. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.