Indicating the path correctly in Julia

Viewed 184

I need to run a file in JULIA. To do so, I type the next command:

include("C:\Users\...\...\...\...\Function_Codes\File.jl")

The problem is that it does not recognise the backslashes, and I have to change them manually to put the same path with forwarding slashes:

include("C:/Users/.../.../.../.../Function_Codes/File.jl")

Can I configure JULIA to interpret the path correctly with backslashes? If not, how can I convert the path automatically instead of changing the slashes manually one-by-one

1 Answers

I verified that putting 'raw' before the path works perfectly fine from the comments added to my question. The user @Brian suggested this solution.

The command would be:

include(raw"C:\Users\...\...\...\...\Function_Codes\File.jl")
Related