fname = "winequality.csv"
data = readdlm(fname, ';')
# 1600x12 Array{Any,2}:
#    "fixed acidity"   "volatile acidity"  …    "alcohol"   "quality"
#   7.4               0.7                      9.4         5.0
#   7.8               0.88                     9.8         5.0
#   7.8               0.76                     9.8         5.0
#  11.2               0.28                     9.8         6.0

# if comma (,) separated:
# data2 = readcsv(fname)
# variant:
data3 = readdlm(fname, ';', Float64, '\n', header=true)
#> (1599x12 Array{Float64,2}, 1x12 Array{String,2})
#  7.4  0.7    0.0   1.9  0.076  11.0  34.0  0.9978   3.51  0.56   9.4  5.0
#  7.8  0.88   0.0   2.6  0.098  25.0  67.0  0.9968   3.2   0.68   9.8  5.0
#  7.8  0.76   0.04  2.3  0.092  15.0  54.0  0.997    3.26  0.65   9.8  5.0
# 11.2  0.28   0.56  1.9  0.075  17.0  60.0  0.998    3.16  0.58   9.8  6.0
# ...
#  "fixed acidity"  "volatile acidity"  …  "sulphates"  "alcohol"  "quality"

# extracting data:
row3 = data[3, :] # measurements for wine xyz
# 1x12 Array{Any,2}:
#  7.8  0.88  0.0  2.6  0.098  25.0  67.0  0.9968  3.2  0.68  9.8  5.0
col3 = data[ :, 3]  # measurements of citric acid
# 1600-element Array{Any,1}:
# "citric acid"
# 0.0 0.0 0.04 0.56 0.0 0.0 ⋮ 0.08 0.08 0.1 0.13 0.12 0.47
x = data[:, 2:4] # measurements for "volatile acidity"   "citric acid"   "residual sugar"
y = data[70:75, 2:4]
# 6x3 Array{Any,2}:
 # 0.32   0.57  2.0
 # 0.705  0.05  1.9
 # 0.63   0.08  1.9
 # 0.67   0.23  2.1
 # 0.69   0.22  1.9
 # 0.675  0.26  2.1
 z = [data[:,3] data[:,6] data[:,11]]
 # 1600x3 Array{Any,2}:
 #  "citric acid"    "free sulfur dioxide"    "alcohol"
 # 0.0             11.0                      9.4
 # 0.0             25.0                      9.8
 # 0.04            15.0                      9.8
 # 0.56            17.0                      9.8
 # ⋮
 # 0.08            32.0                     10.5
 # 0.1             39.0                     11.2
 # 0.13            29.0                     11.0
 # 0.12            32.0                     10.2
 # 0.47            18.0                     11.0
 type Wine
    fixed_acidity::Array{Float64}
    volatile_acidity::Array{Float64}
    citric_acid::Array{Float64}
    #...
    quality::Array{Float64}
end
wine1 = Wine(7.4, 0.7, 0, ..., 5)
wine1 = Wine(data[1, :]...) # ... = splat-operator

# writing to csv file:
writedlm("partial.dat", z, ';')