Navigation Banner
  next up previous
Next: Select the species and Up: Simple Batch Files Previous: Simple Batch Files

Read a data file.

The line of code

DataSet myData = ReadDataFile ("../data/demo.seq");

reads data from the file demo.seq (located in the data directory) and stores the data in a structure called myData. The line of code uses two Hy-Phy commands, DataSet and ReadDataFile. The first part of the program statement, DataSet myData, simply tells Hy-Phy to create a structure named myData that will hold a data set. The second part of the statement,

ReadDataFile("../data/demo.seq")
actually reads and processes the data in the file demo.seq.



Spencer Muse
2000-05-31
 
Sergei L. Kosakovsky Pond and Spencer V. Muse, 1997-2002