OS X Lion deleted my C program
===

I have recently bought a new macbook with OS X Lion on it, being rather pleased I will be able to write programs without any trouble. Java developping was indeed all right.

However, my problems began when I started to write in C. Several programs were accepted (for instance my homework in university), but the last one ended up in a request for restarting the computer.

OK, I restarted it - once, twice. After the third reboot my program disappeared!! Not exactly the source file, but the text has been converted into strange symbols of another encoding. And I have very big doubts that after decoding into UTF-8 it will be back my program.

Has anyone ever come across such behavior of Mac OS X? What caused Macbook delete my source code? Maybe the fact that I was writing a linked list using pointers (I know it's a dangerous issue)? Also I would like to know how to return my code!

Anyway, I would really appreciate any help. I am a programmer on ČVUT, and the next semester will be mostly in C ... I am already afraid of writing in C on my Mac cause  all the results can easily disappear and all my effort will be in vain.

