<pre><code>./vanitygen -k 1 -o output.txt
</code></pre>

<p>will generate addressses until you stop it, and will save the addresses to <code>output.txt</code>. It won't be formatted, so it's a better idea to use <a href="https://github.com/exploitagency/vanitygen-plus" rel="nofollow noreferrer">Vanitygen Plus</a>'s <a href="https://github.com/exploitagency/vanitygen-plus/blob/c0f2cc31a90042daa91d0ef317f0f467fcecf45d/vanitygen.c#L355" rel="nofollow noreferrer"><code>-z</code> option</a>, which formats the output as CSV.</p>

CC BY-SA 4.0
2018-08-27T11:18:50.470Z
it is fatest way? Dont it be slowed by writing 1 string in file each time?
I know what operations like write in file are very slow.
Nick Nikolaev
CC BY-SA 4.0
2018-08-27T10:46:12.860Z
2018-08-27T10:46:12.860Z
MCCCS
<p>i want to know it is possible to store all generated addresses into file (or DB). 
How it can be? <br>
For example i need to generate 1,000,000,000 addresses, with vanitygen speed about 50M per second.</p>

CC BY-SA 4.0
2018-08-27T10:39:28.040Z
Related: https://bitcoin.stackexchange.com/questions/10709/how-to-pre-generate-100m-bitcoin-addresses
MCCCS
<vanity-address><vanitygen>
Vanitygen: How ot store all generated addresses?
Nick Nikolaev
# Vanitygen: How ot store all generated addresses?

(Asked by: username_0 on 2018-08-27)

i want to know it is possible to store all generated addresses into file (or DB).
How it can be?   
For example i need to generate 1,000,000,000 addresses, with vanitygen speed about 50M per second.

**Tags:** vanity-address, vanitygen

> **Comments:**
> **username_1**: Related: https://bitcoin.stackexchange.com/questions/10709/how-to-pre-generate-100m-bitcoin-addresses  

---

## 1 answers

### Answer by username_1 on 2018-08-27. Score: 1 | Accepted answer

./vanitygen -k 1 -o output.txt

will generate addressses until you stop it, and will save the addresses to output.txt. It won't be formatted, so it's a better idea to use Vanitygen Plus's -z option, which formats the output as CSV.

> **Comments:**
> **username_0**: it is fatest way? Dont it be slowed by writing 1 string in file each time? I know what operations like write in file are very slow.  

---

