C#: Create and write some line of text which does not contain a given string in a line
Write a C# Sharp program to create and write some lines of text into a file. This does not contain a given string on a line.
Sample Solution:-
C# Sharp Code:
Sample Output:
Create and write some line of text which does not contain a given string in a line : ------------------------------------------------------------------------------------------ Input the string to ignore the line : easy Input number of lines to write in the file : 2 Input 2 strings below : Input line 1 : w3resource Input line 2 : it is easy tutorial The line has ignored which contain the string 'easy'. The content of the file is : ---------------------------------- w3resource
Flowchart :

C# Sharp Code Editor:
Improve this sample solution and post your code through Disqus
Previous: Write a program in C# Sharp to create a file and write an array of strings to the file.
Next: Write a program in C# Sharp to append some text to an existing file.
What is the difficulty level of this exercise?
Test your Programming skills with w3resource's quiz.