# TXTNotebook

"TXTNotebook" is a customized class used for `.txt` files.

## Usage

### TXTNotebook Setup

```javascript
const Nodebook = require('nodejs-notebook');

const textbook = new Nodebook.TXTNotebook('studies');
```

**note(value)**

Similar to `addLine()` but it does not automatically go to the next line.

string `value`:\
The value to add to the file.

```javascript
textbook.note('Rome wasn\'t built in a day.\nScience is hard.');
```

**erase(value, options)**

Erase word(s) from the `.txt` file.

string `value`:\
The string to erase it from.

object `options`:

* `options.flag`: The flag to delete in RegExp.

```javascript
textbook.erase('R');
// Erases the first instance of 'R'

textbook.erase('.', { flag: 'g' });
// Erases all instances of '.'
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nodebook.js.org/text/txt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
