iPad: Create a logfile that gets continuously updated?

I want to create a file for my logs. But how can I continue on writing logs into one single file? For the first use I create the file and save my first log in it. But how can I continue on writing on this file without deleting the previous log messages?


NSFileHandle *h = [NSFileHandle fileHandleForWritingAtPath:@"MyFile.log"];
[h seekToEndOfFile];

// log
[h writeData:[@"Hello World! 2nd time" dataUsingEncoding:NSUTF8StringEncoding]];

// close when not needed anymore
[h closeFile];

Need Your Help

remove SID from URL and redirect 301 with .htaccess

mod-rewrite magento seo

we have some URLs with SIDs in googles search results we would like to 301 redirect to the pages without the SIDs. so we need an URL rewrite to change this URL

Joomla hello world module not working

php joomla joomla-extensions joomla3.0

This is the first time I'm working with Joomla and I try to get started with simple hello world module.