# Is the problem the function or the dataset I'm trying to use?

**URL:** https://discourse.julialang.org/t/is-the-problem-the-function-or-the-dataset-im-trying-to-use/71236
**Category:** New to Julia
**Tags:** question
**Created:** [November 10, 2021, 12:45am UTC](https://discourse.julialang.org/t/is-the-problem-the-function-or-the-dataset-im-trying-to-use/71236 "2021-11-10T00:45:08Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jd-foster](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jd-foster/32/35824_2.png) [@jd-foster](https://discourse.julialang.org/u/jd-foster)
#### Post date: [November 10, 2021, 2:35am UTC](https://discourse.julialang.org/t/is-the-problem-the-function-or-the-dataset-im-trying-to-use/71236/2 "2021-11-10T02:35:28Z")

</div>

> [@Andres\_Casarrubias](#):
>
> ```julia
> Closest candidates are:
> readdlm_auto(!Matched::Array{UInt8,1}, ::AbstractChar, ::Type, ::AbstractChar, ::Bool; ...)
> 
> ```

The issue appears to be with trying to read in the file _twice_ , that is , when you set

```julia
info = readdlm("DataSet.txt")

```

you get a Julia object, like you said, a `30×6 Array{Float64,2}`. So the effective result inside the function is

```julia
M = readdlm(readdlm("DataSet.txt"))

```

The function call should just be

```julia
mymain("DataSet.txt",5)

```

or

```julia
info_filename = "DataSet.txt"
mymain(info_filename,5)

```

---

_[View the full topic](https://discourse.julialang.org/t/is-the-problem-the-function-or-the-dataset-im-trying-to-use/71236)._
