Octave/MATLAB ‘bug’ with fileread()

data = fileread('in.txt'); data = data(:)';

fixes the problem in Matlab of getting vertical columns of text from some ASCII text files from various operating systems, that is, getting one character per line.

E.g. an input file in.txt containing:

Joe 100 eggs

and executing:

data = fileread('in.txt')

gives:

J

o

e

1

0

0

e

g

g

s