2

Say that I have script.jl and file.txt. At the moment I read the file within the script. (with the path hard coded)

What I would like to do is to type:

julia script.jl /path/to/file.txt

in the command line (linux), and then handle the file in the script. How to do this?

Thanks in advance! Mathias

1 Answer 1

3

Found the answer. The array ARGS holds the command line arguments :)

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.