You can easily create a plain text file in Android which can be opened by editors like Notepad, Wordpad, Gedit, Kate, etc. in PC. I use 920 text editor (hasn't been updated since ages) for such and use them in Kate editor of KDE Plasma in Slackware GNU/Linux (Also tested in Windows and Ubuntu). You may use any other editor of your choice. See this answer or the various text editors listed here on Play Store.
Other than that, ES File Explorer File Manager also allows creating and editing a text file.
Launch it → New → File → name the file with
.txt at the end → open it as text with ES Note Editor.
In addition, if your device is mounted in your PC via USB Storage, or is accessible via MTP/FTP/(a server), then you can use default mechanism of the desktop OS to create a text file in Android. (I do a lot of editing over FTP.)