© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
2 replies
Rennie

Print seperate line from a "database" in a txt file

Hi people.

I have a txt "database" where the input from my console program will be printed to.

I now want to be able to search for a specific keyword (fx a phone number), and then get it to print the entire line, the keyword is in. What is the best way to do that?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

How to open a link from .txt file in c#?
C#CC# / help
3y ago
❔ Reading file (.txt)
C#CC# / help
3y ago