Modified readData.cpp to read dynamically depending on no. of users and files