webdeveloper
03 Aug 2010, 10:57 PM
Hi,
I would like to write a simple JavaScript code that can load up an external JS file and then calculate the number of lines in the code.
Is there a built-in file i/o function in JavaScript that I can use to open a .JS file and start reading each line and calculate the number of lines?
I would like to write a simple JavaScript code that can load up an external JS file and then calculate the number of lines in the code.
Is there a built-in file i/o function in JavaScript that I can use to open a .JS file and start reading each line and calculate the number of lines?