Eagle Cad .brd error open file

I renamed my .brd file, but when I tried to open it, I got this error message:

Error:

line 1, column 2: Premature end of document.


Is there any way to recover what I've lost?

• do you have any .b## or .b#1 files? – Tom Carpenter Apr 18 '17 at 20:21
• yes, recovery files right? – Amin Mansouri Apr 18 '17 at 20:22
• They are backups, yes. .b## is a backup that is made if eagle crashes. .b#1/.b#2/etc. are periodic backups. – Tom Carpenter Apr 18 '17 at 20:23
• Find the newest one and rename it to .brd. – Tom Carpenter Apr 18 '17 at 20:23
• yaaay! it worked! – Amin Mansouri Apr 18 '17 at 20:24

Fortunately Eagle makes periodic backups of your files, and also a backup in the event of a crash. These will be files with the same name as your board file, but with an extension of .b## (crash backup) or .b#1/.b#2/etc. (auto-save backup).
To recover from one of the backup files, simply rename the file to .brd and open it. You should pick the one with the most recent date, hopefully it is quite recent. You will have lost any edits between when the backup was made and when you were working on the board, but if the backup is very recent, this shouldn't be too hard to rectify.