Reading string as file

processing a string like a open file.

String to file object

Geeks for geeks