I want Google script variable data into Google drive as text file and update that text file regulatory via Google script!
The following code creates a text file and writes the data on it.I wonder how i can update the text file later ?
function createTextFile()
{
name="testFile.txt";
name2="testFolder";
var content = "this is text data to be written in text file";
var dir = DriveApp.getFoldersByName(name2).next()
var file = dir.createFile(name, content);
}