I like to save output from a system command, and am unable to figure it out. My problem is: The directory '/temp/ has several files, and file name is a combination of English letters and numericals, for example, abc.123.05, zxy.456.05. The file name always has a fixed length. I tried the following, i.e., declared a character vector of size 100, and length of each element is a string of 10 letters, i.e., number of characters in a file name is 10. Looks like I am missing some thing. any help is greatly appreciated.
part of my code is:
lfnames = call system(command)