As usual while waiting for the next release - don't forget to check the nightly builds in the forum.
Does anyone have any ideas besides reinstalling ubuntu?
Have you tried to open your main.c file with another text editor like gedit, scite, vim, nano, mcedit, cat? Does it work? What are the permissions?