Never open unknown files on your host OS. Use a tool like VirtualBox or VMware with a Linux distribution like Kali or Ubuntu.
Before interacting with any potentially malicious or sensitive text file, set up a safe space: Download 348k txt
Once you have the file in the VM, turn off the internet connection to prevent any embedded scripts from "calling home." Never open unknown files on your host OS