Move to the following path:
cd /home/YOUR_USERNAME/.local/share/applications
Write the following command to create a new file:
nano text-file.desktop
Paste the following content:
[Desktop Entry]
Name=Text link
Comment=Text link
Exec=xdg-open /home/YOUR_USERNAME/text-file.txt
Icon=/home/YOUR_USERNAME/image.jpg
Terminal=false
Type=Application
StartupNotify=true
Keywords=notes;
Categories=Office