I have 2 different threads. In thread one reading data from txt and in thread 2 copy that file into another txt. I want to create a chart via thread 2(which is writingData()