# File path "/" vs "\\" (fslash vs backslash)

**URL:** <https://discourse.julialang.org/t/file-path-vs-fslash-vs-backslash/45244>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [August 20, 2020, 6:48am UTC](https://discourse.julialang.org/t/file-path-vs-fslash-vs-backslash/45244 "2020-08-20T06:48:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [August 20, 2020, 6:48am UTC](https://discourse.julialang.org/t/file-path-vs-fslash-vs-backslash/45244/1 "2020-08-20T06:48:22Z")

</div>

When I copy a file-path from the windows file explorer, the format is like this: C:\Users\MyUser\Folder\File.jl

When I want to read this file in Julia, when trying to read a CSV or include() custom functions, I try to use this command:  
include(“C:\Users\MyUser\Folder\File.jl”)

The problem is that this string contains backslashes, and so it is not parsed correctly. But this is how things have to be to maintain the “\UnicodeSymbol ” functionality, right? My current workaround is to manually change every \ into /, but it just feels like a better option has to exist.

So the question is generally how can I copy file-paths in a way that Julia can correctly parse on a windows computer, which I believe boils down to if/how I can change the direction of the slashes when copying a path from the file explorer. Any fixes out there?

---

<div class="post-metadata">

**Author:** ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)\
**Post date:** [August 20, 2020, 6:57am UTC](https://discourse.julialang.org/t/file-path-vs-fslash-vs-backslash/45244/2 "2020-08-20T06:57:42Z")

</div>

The usual trick is to do `raw"C:\Users\MyUser\Folder\File.jl"`.

---

<div class="post-metadata">

**Author:** ![TheLateKronos](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/thelatekronos/32/12824_2.png) [@TheLateKronos](https://discourse.julialang.org/u/TheLateKronos)\
**Post date:** [August 20, 2020, 7:04am UTC](https://discourse.julialang.org/t/file-path-vs-fslash-vs-backslash/45244/3 "2020-08-20T07:04:39Z")

</div>

Nice, that works 😃 For anyone googling this issue, here is a link to the documentation:  
[https://docs.julialang.org/en/v1/manual/strings/#man-raw-string-literals-1](https://docs.julialang.org/en/v1/manual/strings/#man-raw-string-literals-1)
