# Difference between \`write\` and \`print\`

**URL:** <https://discourse.julialang.org/t/difference-between-write-and-print/6943>\
**Category:** General Usage\
**Tags:** question\
**Created:** [November 7, 2017, 8:17pm UTC](https://discourse.julialang.org/t/difference-between-write-and-print/6943 "2017-11-07T20:17:16Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [November 7, 2017, 9:05pm UTC](https://discourse.julialang.org/t/difference-between-write-and-print/6943/2 "2017-11-07T21:05:29Z")

</div>

`print` outputs a text representation of an object, whereas `write` outputs raw bytes. Try `x=7310302560386184563` and look at `println(x)` versus `write(stdout, x); println()` to see the difference.

---

_[View the full topic](https://discourse.julialang.org/t/difference-between-write-and-print/6943)._
