Error in readfileString?

You have not defined this method readFileAsString in your class that’s why it is giving this error. Define this method in your class and return a string containing file contents. this method is given just to refactor your code.

@Rohit_Ghumare please look into @Akash_gupta reply, your issue should be resolved from that hint. Please let us know if your issue is resolved or not.