S
slomo
How to read strings cantaining escape character from a file and use it
as escape sequences?
for example, a file 'unicodes.txt' has contents:
\u0050\u0079\u0074\u0068\u006f\u006e
Now,
\u0050\u0079\u0074\u0068\u006f\u006e
But I want to get a string:
"\u0050\u0079\u0074\u0068\u006f\u006e"
How do you make it?
as escape sequences?
for example, a file 'unicodes.txt' has contents:
\u0050\u0079\u0074\u0068\u006f\u006e
Now,
\u0050\u0079\u0074\u0068\u006f\u006e
But I want to get a string:
"\u0050\u0079\u0074\u0068\u006f\u006e"
How do you make it?