I have a problem with the Import function in Mathematica 7. I have several Import functions in one notebook and want to be able to change the folder where the input file is in quickly. So i created a string which i want to call up in the function:
folder = "foldername";
imp1 = Import[InputForm[StringJoin[folder, "/filename1"]],"Table"];
imp2 = Import[InputForm[StringJoin[folder, "/filename2"]],"Table"];
so, the function should be:
imp3 = Import["foldername/filename3"]],"Table"];
imp3 works but imp1 and imp2 won't. Can anyone tell me why?
i get the error:
Import::chtype: first argument "foldername/filename1" is not a valid file, directory, or URL specification.