On Tue, 24 Feb 2004 17:14:17 +0300, Timur Elzhov <Timur.Elzhov at jinr.ru> wrote : > flist <- system("ls *.dat", intern = TRUE) That's not portable (Windows doesn't necessarily have ls). list.files() is the portable function to do this. If you want to be Windows-only non-portable, then choose.files() is a bit more friendly than list.files(). Duncan Murdoch