It is a standard text file however there may be issues with the encoding or the end of line characters depending on your editor.
If your source code is corrupted you can usually use the FormDuplicator to extract the designer data to a new project:
FormDuplicator - A tool to copy forms between projects