Does the input file need to be directly processed by the program?
say in the latest Beautiful strings question,
5
ABbCcc
Good luck in the Facebook Hacker Cup this year!
Ignore punctuation, please 🙂
Sometimes test cases are hard to make up.
So I just go consult Professor Dalves
how would i handle it say in javascript?
Many thanks
For this you can use the node.js filesystem api (also write your code in node.js – it’s on google v8 so it should be fast enough for this one)
EDIT
I thought about your problem and it can be more simply solved (without using node.js) making a AJAX request to the file. You can achieve this like so :
If you are a beginner you can read more stuff about AJAX requests on W3Schools
You can choose the method that suites better for you! Good luck!