[PD] Reading txt file inside folder

Ronni Montoya ronni.montoya at gmail.com
Thu Aug 29 04:31:54 CEST 2013


hi,    [read ../data/colors.txt ( doesnt work here on macosx.

I ve tried in the following way and it worked.

[ read data/colors.txt (


I was wondering if the way im doing this will allow the patch to work
only on macosx?

If yes, is there is a way of solving this?

2013/8/28, Lorenzo Sutton <lorenzofsutton at gmail.com>:
> On 28/08/2013 02:17, Ronni Montoya wrote:
>> Hi , i have a folder with my pd patch and another folder that stores
>> txt files ( my data).
>>
>> How can i read my txt files from that folder using relative path?
>> I need to be able to change the location of my folder and not having
>> the necessity of rewriting the path.
>>
>>
>>
>> any idea?
> Assuming you're using [textfile], something like this should work
>
> [read ../path_to_file/file.txt(
> |
> [textfile]
>
> Lorenzo.
>
> _______________________________________________
> Pd-list at iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>



More information about the Pd-list mailing list