Home > Net >  C # controls Notepad to open a file, c # how to obtain Notepad showed that the content of the files?
C # controls Notepad to open a file, c # how to obtain Notepad showed that the content of the files?

Time:01-04

Notepad + + c # control open a file, how to obtain notepad + + c # shows the content of the files?

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 function
Can 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
  •  Tags:  
  • C#
  • Related