read ,write and execute txt file