Best way to change a string
var quantity_in_stock_S = 2
var quantity_in_stock_M = 2
var quantity_in_stock_L = 1
I don't know why you asked about strings when you're clearly asking about numbers.
You can just subtract 1 from your number, like so
is the same as
quantity_in_stock_S -= 1;
quantity_in_stock_S = quantity_in_stock_S - 1;
I am looking to literally replace the number on exactly the same line. Is that possible with some write function?
using the fseek function maybe?
the more accurately you explain the problem, the faster you can get help. the way you are asking, helpers can't help you
Originally Posted by maxmitch
signature under construction
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)