It's not a text file, it's an OpenRGB profile, and I'm trying to capture the device name. When I read it as text using FileRead, it only shows the header "OPENRGB_PROFILE". I've tried reading it as raw or hex but so far it comes up with "0" or blank. I've never done anything like this before, so it's very tough.
When I open the file in notepad++, it's line 2 that has the data I am looking for. When I open the file in notepad.exe, there's a character on each side of the device name. But these characters aren't constant from profile to profile, and the idea is to extract the device name of different devices/profiles. The only thing that stays constant is that the first letter of the device is in the same place (when viewing the hex). So maybe reading the file with an offset, and then reading up until the point where it detects more than one space, and then trimming off the extra spaces could work?
This is a screenshot of the part that I am trying to extract.
![Image](https://i.imgur.com/gUyr0CE.png)
The goal is to have it show up in a MsgBox (for testing), and then write the variable to a settings ini file. So reading the text, storing it as a variable and then writing it use IniRead. The second part is easy but the first part seems super complicated.
I've included two sample profiles from two different devices, if anyone knows of a way to make this work. I figured it'd be worth a try..