Virus/Malware等|使用 .fs 读取是否与执行文件相同?

Virus/Malware etc. | Is reading with .fs same like executing the file?

假设您有一个 sample.txt(或使用 .fs 可读以获取文本数据的所有其他文件格式)并且此文本文件中有一个 virus/malware。

执行文件时会感染病毒。

但是,如果您使用 node.js 中的 fs 模块读取 sample.txt,然后仅重新导出读取的文本数据,会发生什么情况? 病毒是否也可以通过 fs 读取来执行?或者 fs 基本上是在执行 sample.txt?

读取文件不执行。
能不能执行无所谓,阅读根本不考虑执行