Jump to content

Relative File Paths


jurgmay

Recommended Posts

Does anyone know if relative paths will work with paths to external data files?

Yes, the Frodo Travel Tutorial uses a relative path with ExternalDataFileEx.

matrix = new ExternalDataFileEx("/Users/UserA/Jobs/L142/Data/L142_matrix.txt", "\t")

 

matrix = new ExternalDataFileEx("../Data/L142_matrix.txt", "\t")

 

The former works, the latter does not.

 

I'm running 7.2 on OS X and my folder structure is:

 

-Jobs

--L142

---L142_Job.pdf

--Data

---datafile.txt

---L142_matrix.txt

The path should be relative to the input data file. If the external file is in the same folder as the main input data file, then you don't need any path at all, just the file name.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...