Read Large File Line By Line

NodeJS Hard 3 views
Back to Questions

Problem Description

Read a file line by line and print how many lines contain 'meetcode'.

Input Format

stdin: file path.

Output Format

Print integer.

Sample Test Case

Input:
a.txt
Output:
3

Constraints

Use readline with createReadStream.

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next