Hi,
I have been trying all the possible solutions that you suggested me but no one of them works for the case that I'm working in. The problem is that in CIAO the execution of the predicate stream_property(S,file_name(L)) returns in L the whole path of the file associated to S but it does as an atom without ' '. When I run the predicate no_path_file_name(L,Name) to the result of running stream_property(S,file_name(L)) it returns in Name the whole path of the file.
It happens as well when we try to get the name of the file from a path in the situation shown in the next example:
L= /directory/directory/file.
no_path_file_name(L,Name).
Name= /directory/directory/file.
If the predicate file_name returned the path in that way '/directory/directory/file' the predicate no_path_file_name, and the others that you also have suggested,would work but this is not the case.
Thanks.
Lorea
============================================================================== Message: Address: Action: help majordomo(a)clip.dia.fi.upm.es Info. on useful commands subscribe ciao-users-request(a)clip.dia.fi.upm.es Subscribe to this list unsubscribe ciao-users-request(a)clip.dia.fi.upm.es Unsubscribe from this list <whatever> ciao-users(a)clip.dia.fi.upm.es Send message to list ----------------------------------------------------------------------------- Archived messages: http://www.clip.dia.fi.upm.es/Mail/ciao-users/ -----------------------------------------------------------------------------