Julia create a file and read a file

Julia is a  Open Source.Julia is free for everyone to use..Julia is a high-level general-purpose dynamic programming language that is designed to address the needs of high-performance numerical analysis and computational science, without the need of separate compilation to be fast.

Julia is used in

  • Machine Learning
  • Data Science
  • Visualisation
  • General Purpose
  • Parallel Computing
  • Scientific Domains

In today's example we will see how to create a file using Julia , write content to the file and again read it

 To create a file in Julia i will use the following syntax and see if we can create a file 

write("File1.txt","Welcome To The World Of Julia")

When we execute this line , a file will be created .

Now to the above file created we will append some text to it and will see how  to do it 

julia> io = open("File1.txt", "a");

julia>  write(io, "HUrray we have create our first file!");

julia> close(io)

Here you can see the text has  been appended to the end of the string in the file

Now you want to manually verfiy where the file has been create so you can go to the following path and open it and check the file content 

To do this there is a command which we discussed in previous post , that it 


This will give you the present working directory

For more details on files you can visit the following  link   Click Here 

Next :  Main Menu