Hi,
No problem.
You could try:
printer = file("out.txt","w")
writeLines("This is line.",con=printer,sep=" ")
writeLines("The same line.",con=printer)
close(printer)
#or
cat(sprintf("This is line %d. ",1),file="out.txt",append=TRUE)
cat("The same line.",file="out.txt",append=TRUE)
A.K.
Thank
HI,
May be this helps:
printer1<- file("out1.txt","w")
write(sprintf("This is line %d.\n",1),printer1,append=TRUE)
write("This is line 2",printer1,append=TRUE)
close(printer1)
#or
printer1<- file("out1.txt","w")
writeLines("This is line",con=printer1,sep="\n")
writeLines("This is line 2",con=p
2 matches
Mail list logo