var filepath="path of a file";
var txtFile = new File(filepath);
Asked
Active
Viewed 6,175 times
0

Dan Lowe
- 51,713
- 20
- 123
- 112

SameerKhan1406
- 289
- 5
- 18
-
https://gist.github.com/Arahnoid/9925725 link from github – SameerKhan1406 Oct 05 '16 at 10:27
1 Answers
2
The error says "2 arguments required". So you need two arguments.
Try
var txtFile = new File([""], filepath);

Community
- 1
- 1

Mark Lakata
- 19,989
- 5
- 106
- 123