26.07.2012, 10:45
Both of your codes (above) don't make any sense. If response is 0, then it is 0 and nothing else. The other code block is never called. There is nothing wrong with the original structure the OP posted.
The file is probably created when connecting.
The file is probably created when connecting.