Hi@akhtar,
As we know text files are in String format. So, if you changed the String format into a different format then it will not able to process empty String. You can avoid this by checking, if there empty String present.
Hope this will help you
Thank You