# Need to include one file multiple times, how to avoid warning

**URL:** <https://discourse.julialang.org/t/need-to-include-one-file-multiple-times-how-to-avoid-warning/27439>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 12, 2019, 1:55am UTC](https://discourse.julialang.org/t/need-to-include-one-file-multiple-times-how-to-avoid-warning/27439 "2019-08-12T01:55:44Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [August 12, 2019, 3:03am UTC](https://discourse.julialang.org/t/need-to-include-one-file-multiple-times-how-to-avoid-warning/27439/5 "2019-08-12T03:03:41Z")

</div>

You should not need to include the same file multiple times in Julia, so the answer to your question is “don’t do that”. This is an important difference between the way Julia and C++ are used. Instead, you can do:

```julia
module A

include("B.jl")
using .B

module C
  using ..B
end

end

```

Where B.jl looks like:

```julia
module B
...
end

```

The `using ..B` line lets you load the B module from A inside C without having to include it twice.

---

_[View the full topic](https://discourse.julialang.org/t/need-to-include-one-file-multiple-times-how-to-avoid-warning/27439)._
