I am trying to read a value from a text file and output this to the Windows registry.

The text file (temp.txt) has the following information in it...

Adapter: PCI adapter
CPU Temp: +36.0C (high = +70.0C)
Tctl: +36.0C

I want to take the CPU Temp: value (always changing but in this case +36) and place this value in HKEY_CURRENT_USER\Software\FinalWire\AIDA64\ImportValues
as a string value called Str1.

Please can someone advise on the code to do this?

Thank you.