Understandably I haven't programmed in a very long time, actually years.
I need a code that will allow me to fetch a certain string from a txt file on my server. I will probably need some pipe's to seperate different item codes apart.
Basically I need;
A code that will understand that there is going to be a text file with about 20 different number codes in it
A code that will be able to loopback a "No code found" if no string is returned
I'm creating a track a parcel ID feature on my website, and every item will have a special code, and a logistics officer will be adding details to the text file about where the item is.
Question
.bin
Understandably I haven't programmed in a very long time, actually years.
I need a code that will allow me to fetch a certain string from a txt file on my server. I will probably need some pipe's to seperate different item codes apart.
Basically I need;
A code that will understand that there is going to be a text file with about 20 different number codes in it
A code that will be able to loopback a "No code found" if no string is returned
I'm creating a track a parcel ID feature on my website, and every item will have a special code, and a logistics officer will be adding details to the text file about where the item is.
The structure at the moment is;
It would be ideal if underneath this, it will return the result.
The text file will look like
I know it's not a great approach, I should be using SQL, etc, but this is the only option for now.
Can someone help?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts