If I'm given a URL that points to a .txt
file, is it always safe to open it? Can it possibly contain virus or malicious content?
A genuine txt-file can contain virus code but it cannot be executed, so it's totally safe. However, a file can use double file extension like this, so watch out:
a-virus-file.txt.exe
Windows hides by default .exe because it's a known file type.