mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-17 23:08:36 +02:00
API: Allow ns.read to read .msg and .lit files (#2455)
This commit is contained in:
@@ -58,7 +58,9 @@ Data in the specified text file.
|
||||
|
||||
RAM cost: 0 GB
|
||||
|
||||
This function is used to read data from a text file (.txt, .json, .css) or script (.js, .jsx, .ts, .tsx).
|
||||
This function is used to read data from a text file (.txt, .json, .css), a script (.js, .jsx, .ts, .tsx), a literature file (.lit), or a message (.msg).
|
||||
|
||||
This function will return the data in the specified file. If the file does not exist, an empty string will be returned.
|
||||
|
||||
With literature files, the returned data is a raw HTML string.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user