I had the same problem after a recent update. It took me a long time to figure out how to fix it, but finally did. It turns out the iTunes update was corrupt. I would copy a non-corrupt copy of the library.itl file from TimeMachine, put it in my music folder (on an external drive), open iTunes and voila! My whole library with all playlists, etc. are there. Then, after quitting and restarting iTunes I'd get the exact same corrupt file message and iTunes would create a new, empty library file. The way I resolved this is as follows:
Quit iTunes
Remove iTunes from Startup Items (if there). This is under system preferences (Mac), Users
Restart computer
Delete iTunes - I mean everything EXCEPT what is in your Music folder. Keep everything in the Music folder (whether in the default location or not)
Go to Apple's website, find the full download of the current version of iTunes, download it
Install iTunes, don't open it
Go into your "previous iTunes libraries" folder (in your music folder), change the name by removing the date, and move it to the Music folder, replacing the default library.itl file. Alternatively, go to Time Machine, find the last library.itl file before the corrupt update (in the Music folder) and move that to your current Music folder, replacing the one there.
Hold down option key and open iTunes
In the popup select "Choose Library"
Navigate to your recovered library and press enter (or open?)
iTunes should open with all your playlists, etc. Try restarting iTunes to make sure this worked. If not, cry.
Add iTunes to your Startup Items, if desired
Voila. Problem solved. (Well, at least it worked for me.)