How to write to file Array Any lika 1 row?


#1

How to write to file Array Any lika 1 row without any null etc… jus body like one row
julia> f = open(“tmp/tmp.txt”, “w”)
IOStream(<file tmp/tmp.txt>)
julia> write(f, temp_rekord)
133
julia> close(f)
julia> temp_rekord
9-element Array{Any,1}:
1
"100121"
"601204011111000000000010171111101111100000004111611E11110101111111111110"
"4385.37"
5
0
0
0
0

julia> eltype(temp_rekord)
Any
julia> typeof(temp_rekord)
Array{Any,1}

After in file is may rubish, null~`s tect

Paul


#2

Does this do what you want?

f = open("tmp/tmp.txt", "w")
writedlm(f,reshape(temp_rekord,(1,9))," ")
close(f)

#3

Thx, something similar:)
Paul

W dniu 2017-01-21 10:17, Simon Bolland pisze: