use resource get data from file