CodePudding user response:
The file content is not you specify the file, can't you read the file directly, c # don't know what you want to achieve functionCan also be SendMessage (hWnd, WM_GETTEXT, length, StringBuilder);
https://stackoverflow.com/questions/7740379/c-sharp-how-to-use-wm-gettext-getwindowtext-api-window-title/7741034#7741034