TransWikia.com

Why exported text ends with a highlighted percent symbol?

Mathematica Asked by david1983 on March 27, 2021

I have recently updated Mathematica to 12.1. Whenever I export strings as text now, as in the following MWE:

    Export["test.txt", "a", "Text"]

a highlighted question mark appears at the very end of the underlying txt file:

screenshot

Then I need to put extra effort to remove. How I can avoid this problem?

One Answer

To include an eol, try this:

Export["test.txt", "an", "Text"]

Correct answer by Alan on March 27, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP