When I run the following code in a loop I get an error after about 125 times
saying too many open files...


if(inherits(atmpt, "try-error")){
            output <- paste(yahooSymbol,"\n",sep="")
            write(output, file = "data", append = TRUE, sep = "")
} else {


I've tried various things to close the file after write opens it, and looked
through the RBase docs... but I can't find anything that succesfully closes
the file.

This is obviously trivial... any ideas

Nick

	[[alternative HTML version deleted]]


