Added extractBufferedDataFromFile