Dear All,
I am new at C# so sorry if this sounds a bit simple. How do i read the contents of s text file into an array I think i need a struct array, as i have four seperate values that i want to read in, namely product code, quantity, buying price, selling price, all I have at the moment is my struct set up i.e.;
struct stockItems
{
string productCode;
string quantity;
string buyingPrice;
string salePrice;
}
I have set up a new class which will contain all the methods which will manipulate the file, but was stuck on how to read in a previous files data into an array. Also if possible could you point me in the right direction for once the file has been read, being able to search through the array, based on the product code in my case, and amend either the quantity, buying price or sale price
Thanks
Sukh
.NET Development24
|