# Using: include("file.jl") | Variables

**URL:** <https://discourse.julialang.org/t/using-include-file-jl-variables/48017>\
**Category:** General Usage\
**Created:** [October 9, 2020, 5:39am UTC](https://discourse.julialang.org/t/using-include-file-jl-variables/48017 "2020-10-09T05:39:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jea](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jea/32/18457_2.png) [@Jea](https://discourse.julialang.org/u/Jea)\
**Post date:** [October 9, 2020, 5:39am UTC](https://discourse.julialang.org/t/using-include-file-jl-variables/48017/1 "2020-10-09T05:39:05Z")

</div>

How could the **hi** variable of **second.jl** be used in **first.jl** knowing that an include is made in **second.jl** over **first.jl**

Example

first.jl

```julia
any = "$(hi)" # hi is undefined
println()

```

second.jl

```julia
hi = "hola" # variable for use in first.jl
include("first.jl")

```

---

<div class="post-metadata">

**Author:** ![Mason](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mason/32/2423_2.png) [@Mason](https://discourse.julialang.org/u/Mason)\
**Post date:** [October 9, 2020, 6:12am UTC](https://discourse.julialang.org/t/using-include-file-jl-variables/48017/2 "2020-10-09T06:12:59Z")

</div>

Did you try it? It looks fine to me.

---

<div class="post-metadata">

**Author:** ![josuagrw](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/josuagrw/32/1015_2.png) [@josuagrw](https://discourse.julialang.org/u/josuagrw)\
**Post date:** [October 9, 2020, 7:31am UTC](https://discourse.julialang.org/t/using-include-file-jl-variables/48017/3 "2020-10-09T07:31:18Z")

</div>

The println() method has no argument so it doesn’t actually show the string stored in `any`
