Read a file

Hi guys,

im feeling kinda stupid. I think the solution is so simple that i didnt find anything in the forum.

read txt.kmmacros (2.7 KB)

How does the function read a file works? I have a txt file which contains:
lili,bobilly,jam
test,test,test
bao,phuoc,binh
bao,papa,mama
binh,phuoc,bao
bao,binh,mama

But when i try to use the read a file function i get nothing. What am i doing wrong?

Working fine here.

There may just be a problem in the path string or the contents of the file itself.

Start with a simple text file (no spaces in the name) in a folder with a simple path, like ~/Desktop

and use the browse icon on the right hand side of the Read File to Variable action to get the path (rather than entering it manually)

Thanks for your help! I just moved the file to an other folder and now it works. Pretty weird.