<p>Simple answer: no.</p>
<p>The files are not text files and therefore don't have lines.</p>

CC BY-SA 4.0
2021-04-22T11:00:51.860Z
So the only way to parse it is to check each block size in order to skip to the next?
Bitcoingraffiti
CC BY-SA 4.0
2021-04-22T11:43:13.087Z
Tested and confirmed!
Bitcoingraffiti
CC BY-SA 4.0
2021-04-22T10:57:27.880Z
2021-04-22T10:57:27.880Z
RedGrittyBrick
<p>Simple question. Is each line in a blkxxxxx.dat file a block?</p>

<bitcoin-core><blockchain><raw-data><chainanalysis>
Are blocks stored in blkxxxxx.dat files per line?
Bitcoingraffiti
# Are blocks stored in blkxxxxx.dat files per line?

(Asked by: username_0 on 2021-04-22)

Simple question. Is each line in a blkxxxxx.dat file a block?

**Tags:** bitcoin-core, blockchain, raw-data, chainanalysis


---

## 1 answers

### Answer by username_1 on 2021-04-22. Score: 1 | Accepted answer

Simple answer: no.

The files are not text files and therefore don't have lines.

> **Comments:**
> **username_0**: So the only way to parse it is to check each block size in order to skip to the next?  
> **username_0**: Tested and confirmed!  

---

