How to use `readdlm` to read in a Matrix{Char}

Sometimes it’s useful to read in the file as a matrix of characters, in other words, split on empty char – but currently, readdlm(path, dlm::Char) the second argument has to be a Char and there’s no empty Char. am I missing something?

The current workaround is not too bad:

    stack(readlines(path); dims=1)

I believe we already had the same - or a very similar question - during last years Advent of code. :wink:

4 Likes

It was even by you :grinning:

5 Likes