[JW Lua] Open external file

Javier Ruiz [Editions 75 assistant] javier.ruiz at editions75.com
Mon Feb 9 23:29:08 CET 2015


Oh, well. Sorry. I just used the absolute path and it worked perfectly:

print(io.open("/Volumes/SSD_TRES/test_JW_LUA/dummy.txt", "r"):read("*all"))

Thanks anyway...

On 2/9/15 10:23 PM, Javier Ruiz [Editions 75 assistant] wrote:
> Hi all,
>
> first of all thanks to Jari for building this incredible tool! It's a 
> dream come true for many of us who like composing with logical premises.
>
> My question is about opening and reading and external file. (I have 
> many lists of chords coming from a Mathematica program).
> I think I could use io.open(filename, 'r') to open a file, but since I 
> don't know the working directory, I am stuck with "No such file or 
> directory 2" messages.
>
> I tried io.popen('ls -a') to no avail...
>
> Any help greatly appreciated!
>
> Javier Ruiz,
> Tenerife  (Spain)
>
> _______________________________________________
> JWLua mailing list
> JWLua at jwmusic.nu
> http://jwmusic.nu/mailman/listinfo/jwlua_jwmusic.nu





More information about the JWLua mailing list