Unable to create a .txt file inside internal storage

put your data into a list

and in the SaveFile method use the text socket to store the data, in your case use the list to csv table block together with your list and in the filename socket use the filename, e.g. echo.txt

Taifun