# How to read in really big integers

**URL:** <https://discourse.julialang.org/t/how-to-read-in-really-big-integers/35196>\
**Category:** New to Julia\
**Created:** [February 26, 2020, 9:44pm UTC](https://discourse.julialang.org/t/how-to-read-in-really-big-integers/35196 "2020-02-26T21:44:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lesshaste](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lesshaste/32/12302_2.png) [@lesshaste](https://discourse.julialang.org/u/lesshaste)\
**Post date:** [February 26, 2020, 9:44pm UTC](https://discourse.julialang.org/t/how-to-read-in-really-big-integers/35196/1 "2020-02-26T21:44:00Z")

</div>

I am trying to read in a file such as [http://paste.ubuntu.com/p/pxmwPXkNNk/.The](http://paste.ubuntu.com/p/pxmwPXkNNk/.The) list of integers should go into an array. I have learned ([How to read in a list of integers into an array - #10 by lesshaste](https://discourse.julialang.org/t/how-to-read-in-a-list-of-integers-into-an-array/35185/10)) that

```julia
using JSON
numbers = JSON.parsefile("input.txt")

```

works very nicely… except it completely falls over with the large integers. In this particular case it just replaces them with 0s.

How can I read in this list of integers as BigInts?

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [February 26, 2020, 9:47pm UTC](https://discourse.julialang.org/t/how-to-read-in-really-big-integers/35196/2 "2020-02-26T21:47:19Z")

</div>

No need to open a new thread. The discussion can continue in [How to read in a list of integers into an array - #14 by kristoffer.carlsson](https://discourse.julialang.org/t/how-to-read-in-a-list-of-integers-into-an-array/35185/14).
