O'Reilly logo

Learning Julia by Rahul Lakhanpal, Anshul Joshi

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Filesystem operations

Accessing files and doing operations over them is one of the most basic operations, and one can achieve the desired results by having the right knowledge about functions that interact with the filesystem. Given here are some of the most useful functions, along with some examples.

  • homedir() and joinpath() functions: Julia is platform independent. This means that it runs on any platform without any hiccups and you can easily make a script which is cross-platform and can be used by everyone:

That being said, how to handle the different conventions while using directories and paths across different operating systems? This question is easily addressed by the two functions homedir and joinpathHave a look at the following ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required