For example, I import several files with the following lines:
<< (NotebookDirectory[] <> "/psoPackage/psoGenericFunctions.m");
<< (NotebookDirectory[] <> "/psoPackage/calculateVelNiches.m");
<< (NotebookDirectory[] <>
"/objectiveFunctions/objective functions.m");
<< (NotebookDirectory[] <> "/psoPackage/bifurcationMainFunctions.m");
<< (NotebookDirectory[] <> "/objectiveFunctions/limiters.m");
<< (NotebookDirectory[] <> "/pseudoRandomGen/haltonSerie.m");
<< (NotebookDirectory[] <> "/Graphics/Graphics.m")
But I need to import the files in one line. For example: create a new file .m and include in this the package. So only import this new file. Anyone have any ideas how to do this?
Get[NotebookDirectory[] <> #] & /@ {firstFileName, secondFileName, ...}
? However, why do you need to get them all in one line? I can't see much advantage in that myself, and it seems to detract from overall readability. $\endgroup$