R/saveData.R

Defines functions saveFile

Documented in saveFile

#' Saving the data to a file
#' @param path The destination path file
#' @param data The array of lines
#' @examples
#' data <- readData(path)
#' saveFile(newPath, data)
saveFile <- function(path, data){
  fileConnection <- file(path)
  writeLines(data, fileConnection)
  close(fileConnection)
}
AmirHKiani98/FABM-DataHandler-R documentation built on Dec. 17, 2021, 8:47 a.m.