How to create a text file in local machine

Hi,
I am able to create folder using

 create folder 

.
But in that folder I have to create one text file and write some text and this text should copy and paste it into one .csv file.

Please suggest me.

The simplest way to create a local file is to treat it as a container and put some text into it:

put "some text" into file "/path/to/the/new/file.txt"

This will also create the folder(s) where the file is located, so you don’t need to do that first.

Note that if the file already exists, this will replace the old file with the new contents.