开发者

How to store data in memory [closed]

开发者 https://www.devze.com 2023-02-28 06:37 出处:网络
It's difficult to tell what is being asked here. This questio开发者_如何学Cn is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form.
It's difficult to tell what is being asked here. This questio开发者_如何学Cn is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消