work on doc

This commit is contained in:
Olivier Gagnon
2021-10-30 12:34:14 -04:00
parent f99c3fd0cd
commit 43fc5dfd48
589 changed files with 63720 additions and 1168 deletions
+31
View File
@@ -0,0 +1,31 @@
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) &gt; [bitburner](./bitburner.md) &gt; [NS](./bitburner.ns.md) &gt; [tryWrite](./bitburner.ns.trywrite.md)
## NS.tryWrite() method
Attempts to write data to the specified Netscript Port. If the port is full, the data will not be written. Otherwise, the data will be written normally.
<b>Signature:</b>
```typescript
tryWrite(port: Handle, data: string | string[] | number): boolean;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| port | [Handle](./bitburner.handle.md) | Port or text file that will be written to. |
| data | string \| string\[\] \| number | Data to write. |
<b>Returns:</b>
boolean
True if the data is successfully written to the port, and false otherwise.
## Remarks
1 GB