I am trying to append a line in an already existing .txt file. But my syntax overwrites this file :(
   fileConn <- file( "realization1.txt" )
      write(x =as.character(max(cumsum( rnorm( 10^7)))),
            file = fileConn,
            append = TRUE, sep = " ")
      write(x =as.character(max(cumsum( rnorm( 10^7)))),
            file = fileConn,
            append = TRUE, sep = " ")
   }
   close( fileConn )
Does anybody have any solution to this? Thanks for help!
 
     
     
    