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 ...

Get Learning Julia now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.