-
API endpoint to create a text file in a particular folder - used post method and writeFileSync
-
Content of the file will be the current timestamp
-
API endpoint to retrieve the text file in a particular folder - used get method and readFileSync
-
Used express and node js file system
-
I have created file name with only date string along with random text to differentiate the file names
-
And current date & time file name is creating an issue so i have created with only date string.
kuzhalikumaraguru/nodeday1
File system - Create files with current date and time and retrieve all the text files by creating API endpoint
JavaScript