Reading a *.txt (or even *.mat) from a directory

I have a 680x1 vector in *.mat. (To make things easier?) have converted *.mat to *.txt.
Tried reading using read0:\*.txt** and **read:0/home/alm/Documents/*.txt , but only got `*.txt back in the terminal.

What syntax should I use to build a database / load data from *.txt (or even *.mat) file?

that?s an error in symbol formating. * is function.
what?s the name of your file?

you should read your file something like this:

read0`:file.txt

to get a list of the txt files:

 q)show t:system “ls *.txt”   /replace “ls” with “dir” if you’re on window

“1.txt”

“2.txt”

then you can read each text file with

 q)read0 each (`$) t

Did not manage to get the text file list.

Found a solution. My text file name is of the format my-data.txt. Turns out the hyphen was a problem. Changed the filename. I also guess there is a way around like using quotation marks “my-data.txt”, but did not seem to work.

Excellent. Worked!