private void readDataFromTextFile() throws IOException
{

    //read each data line or until end of file reached

    String line;

    if ((line = in.readLine()) != null){

        dataVersion = line;

    }

    for (int i=0; i<DATA_SIZE; i++){

        if ((line = in.readLine()) == null) { break; }

        data[i] = line;

    }

}//end of ADataClass::readDataFromTextFile