When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.
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?