Originally Posted by Sanskruti
Yes, thats true. But in this case, I was told that the file size is max up to the given limit in program.
Even if you are given the file size its always good to be having the most general solutions because clients don't like the program crashing for different test cases.