Instructions to run the code
Clone the project and in the Editor configurations under Program arguments section pass any .text file-name (i.e sample.text) that exisiting in the root folder.
Output:
output.txt will be genrated after code execution.