I started noticing a weird behavior with my SQLite queries for my iPhone application. Whenever I execute an \"INSERT\" statement, a journal file is created beside my db fil
As Joe said, the journal is created when a transaction is started and SQLlite creates one for you when you start a statement.
To clear out that journal and make sure that the statement was committed to the db use:
sqlite3_finalize(insertStmt);
Before your close.
The .journal file will go away and all your data will be nice and safe in your DB.
Hope this helps.
chris.