I want to import txt file with empty line at the end and special characters. I tried many options from the documentation. "String"
option detects the empty line but it does not recognise special characters.
file = ParentDirectory@$UserDocumentsDirectory<>"\\Downloads\\nekineki.txt";
Export[file,"123 abc 🐶🐱\n"];
SystemOpen@file;
Import@file
Import[file,"String"]
Out:
What is the right way to import this?
I'm using Mathematica 13.1 and Windows 11.