I ask this question after trying all codes shared in the site about this without success,
I have a file that contains a very long text, all the text is in the first line only
I want to append long line with symbols to the end of this file, and my line look like this:
[{\n"code":"final .net.wifi.WifiManager wifi \u003d\n "typeName":"","palette":"9","type":" ","spec":"Enable WiFi"}]'
I want to append this line that contains symbols such as \n and [{]".... to an existing file in the end of first line.
\nto actual newline not literal backslash-n\ncharacters? or same for unicode characters like\u003d'? There is one at the end of your example but it might by a typo.