| | |
How to search for a string in a file
Please support our C# advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Mar 2007
Posts: 29
Reputation:
Solved Threads: 0
How to search for a string in a file. As string might be somewhere in the middle of text file. :!:
help please?
thanks
Console.WriteLine("Input a string "); String data = Console.ReadLine(); sr = File.OpenText(@"C:\username.txt"); String st = sr.ReadToEnd(); ?????
help please?
thanks
![]() |
Similar Threads
- Newbie C++ Search and Parsing Text file. (C++)
- Search and count for string (C)
- Binary Search on a text file (Java)
- Search a txt file for words (C++)
- sort string in file txt (C++)
- assigning a string from a file to a variable (C++)
- vc++ mfc-i can't make getline work with a string for file input (C++)
- need to find occurances in a string (C++)
Other Threads in the C# Forum
- Previous Thread: Exprot to Excel in ASP.NET using C#
- Next Thread: Ignore case strings
| Thread Tools | Search this Thread |
.net access ado.net algorithm array barchart bitmap box broadcast buttons c# capturing check checkbox client color combobox control conversion csharp custom database datagrid datagridview dataset datetime degrees development drag draganddrop drawing encryption enum error event excel file files firefox form format forms function gdi+ httpwebrequest image index input install java label libraries list listbox listener loop mandelbrot math mouseclick mysql operator path photoshop picturebox pixelinversion port post programming radians regex remote remoting richtextbox running... saving serialization server sleep socket sql statistics stream string table tcp text textbox thread time timer update usercontrol validation view visualstudio webbrowser windows winforms wpf xml






