CHANGING STOCK VALUE FROM TXT FILE USING PHP


I have a txt file that stores info (sku, name, stock) from products. Is it possible to read from this file and insert only the stock value to wp database using php?

Thanks