problem with printing Curly brackets { }

i want to write one script in file.txt on the sd card,in this script there is :

function { bla bal bal....
bla bal bal....

so when i write :
myFile.print("function { bla bal bal.... bla bal bal.... ");

it gives me problems with the "{" of "if (a<b){ mmmmmmmmmm}

how can i avoid this confusion please?

I believe that is a bug in the formatter. I found that you can mask the problem with something like this:

myFile.print("function { bla bal bal....  bla bal bal....  "); //}

good idea,tahnk you very much :slight_smile: