To create a file in Julia

Depending on what you want to write, maybe even just

julia> x = rand(2,2)
2×2 Array{Float64,2}:
 0.126405  0.14943
 0.260247  0.415338

julia> using DelimitedFiles

julia> writedlm("x.txt", x)