read resolution from txt files