I have a .txt file (the image below shows a snippet):
Unfortunately, when I open the file, and read it, Julia inserts many " \ " and I have no idea why
Why does Julia insert " \ " and how can that be avoided?
I have a .txt file (the image below shows a snippet):
Unfortunately, when I open the file, and read it, Julia inserts many " \ " and I have no idea why
Why does Julia insert " \ " and how can that be avoided?
It’s just printed in the format you would enter it, with escapes (otherwise the "
would terminate the string, so it has to be \"
).
Incidentally, please don’t post screenshots, but quote code instead.
This looks like JSON, check for the JSON.jl package.
Also if you do println(target)
you’ll see that the printout does not have these \
.