Click here to Skip to main content
15,902,189 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i have a normal notepad text file that contains codes, vat / tax formulas , it auto calculates the end price of a product , anyways so the idea is very basic just a few textboxes here and there ,the part im struggling with is connecting the .txt file with the program so tht it searches the txt for the code entered , also this is on android , visual studios

What I have tried:

google
stack layout
youtube
Posted
Updated 12-Dec-16 2:23am
Comments
[no name] 12-Dec-16 8:12am    
Okay... and? Did you have a question?
ridoy 12-Dec-16 13:58pm    
Regex is your friend in that case!
Patrice T 12-Dec-16 20:08pm    
How about showing the Notepad file?
and ask a question?

1 solution

How the data is extracted depends on the format, the more regular it is, the easier would be the parsing code.
Assuming your file contains comma (or whatever) separated values, you could read a line at time, splitting the read line in order to retrieve the values (see String.Split Method (System)[^]).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900