Read or write in text file in PHP-CodeIgniter