# How to stream a large random matrix to a file?

**URL:** <https://discourse.julialang.org/t/how-to-stream-a-large-random-matrix-to-a-file/52673>\
**Category:** General Usage\
**Tags:** question, io\
**Created:** [December 31, 2020, 10:27pm UTC](https://discourse.julialang.org/t/how-to-stream-a-large-random-matrix-to-a-file/52673 "2020-12-31T22:27:58Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![oheil](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/oheil/32/220745_2.png) [@oheil](https://discourse.julialang.org/u/oheil)\
**Post date:** [December 31, 2020, 10:52pm UTC](https://discourse.julialang.org/t/how-to-stream-a-large-random-matrix-to-a-file/52673/2 "2020-12-31T22:52:37Z")

</div>

> [@mkarikom](#):
>
> `A = Mmap.mmap(s, Matrix{Int}, (m,n))`

guess it should be `ss`, so:  
`A = Mmap.mmap(ss, Matrix{Int}, (m,n))`  
or  
`s = open("/tmp/mmap.bin")`  
not `ss`

Have a Happy New Year!!!  
Same to all of you Julia people !!!  
🍾 🍷 🍻 🥂

---

_[View the full topic](https://discourse.julialang.org/t/how-to-stream-a-large-random-matrix-to-a-file/52673)._
