Add method getData(filename)