Is it from the same version of windows as the windows version where you want to import it?
I know there was a slight change in file format between WinNT and Win2K
Well, im creating the code from scratch. If i create the file in notepad it works fine, tho if i create it in textpad i get the above error when i try to import it.
Apparently, when a file is exported from REGEDIT, a byte of hex "FF FE" is put at the beginning of the file. NOTEPAD also knows to add and keep this byte. TEXTPAD is stripping it off (and never adding it), so therein lies the problem I think. I have reported it in a Bug Report.
On Win2K/XP, registry files are Unicode, with a 2-byte BOM. To save files in that format with TextPad, check Write Unicode and UTF-8 BOM, for the appropriate (probably Default) document class.