Read Text File

NodeJS Medium 3 views
Back to Questions
Next Write File Safely Hard N

Problem Description

Read a file path from stdin and print its contents.

Input Format

stdin: one file path.

Output Format

Print file contents.

Sample Test Case

Input:
./data.txt
Output:
(file text)

Constraints

If file missing, print 'NOT FOUND'.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Next