How to store data in memory [closed]
I am reading data from wordpad one by one which records the sale of grocery item by barcode. I want to store it in memory so that after reading the whole file I can calculate the total number of the same items sold by comparing the bar code.
Memory. There are several types of memory.
Any variable is a type of memory storage so one answer could be
dim s as string = "hi"
You can also use files as "memory"
Take a look at this
You should make a class to store your items, then use a List(Of T)
to hold instances of the class.
精彩评论