0

For example need this text to write a file:

This is some simple text "it's quote", test test

I use writeFile :: FilePath -> String -> IO () to write file, but when i try to write this string in the file, in file i see:

This is some simple text \"it\'s quote\", test test

How can i remove \ symbols, i need in only " without \ in my text file.

Thank you.

4

1 回答 1

6

通过该函数将引用添加到String类型中。show如果只是直接写字符串,是不会被转义的。

于 2012-05-26T13:17:35.557 回答