import files

Hello friends, do I need to read the files that there is in a directory of the computer, but every time the files they have a different name, have I proven with a variable type record file and if that I am able to read the files but does it program him he/she has to always be reading the directory and with this option it doesn’t refresh the data, can somebody help me?, thank you

This problem has been discussed before, so You should find it if You search the forum. There You’ll find some code snippets also. The solution is to “repoint” Your file variable to read another directory (with an IF FIND(’-’) and then try to read Your directory again. Then it works. Good luck! //Lars

Thank you Lars, making a repoint works very well.