Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### readFileLines
|
||||
---
|
||||
title: readFileLines
|
||||
tags: node,array,string,beginner
|
||||
---
|
||||
|
||||
Returns an array of lines from the specified file.
|
||||
|
||||
@ -25,5 +28,4 @@ contents of test.txt :
|
||||
*/
|
||||
let arr = readFileLines('test.txt');
|
||||
console.log(arr); // ['line1', 'line2', 'line3']
|
||||
```
|
||||
|
||||
```
|
||||
Reference in New Issue
Block a user