Search for a charactter in a file

pedro2012:
when i recieve the request i need write in the end of the file ' ]' to close the function

I don't understand why you need to do that. Can you explain?