writeFile new line


#1

I am using file plugin from ionic native
i want to make a new line before adding the new input
this.file.writeFile(this.file.externalRootDirectory, ‘mydir.txt’,this.dateForDisplay,{ replace: false, append: true });
how i can do that

thank you at advance


#2
this.file.writeFile(this.file.externalRootDirectory, 'mydir.txt',this.dateForDisplay+"\n",{ replace: false, append: true });

#3

That is the solution?


#4

yes this is the solution