The 'error at line x' is something to do with Windows 7 (possibly x64) editing the torrc file. Had the same issue...
Easiest fix is to go to the Tor folder/data/tor/ then open 'torrc' with Notepad manually. Edit the file by hand, save and restart Tor and it'll accept the changes fine.