TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
romasha ali
NA
94
38.3k
if condition is not executing
Feb 18 2017 6:14 PM
hi,
if condition is not executing here is my code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
namespace porter_s_algo
{
class Program
{
static void Main(string[] args)
{ string builder="";
StreamReader read = new StreamReader(@"C:\Users\Romesha\documents\visual studio 2013\Projects\porter's algo\porter's algo\Properties\TextFile1.txt");
string save;
while ((save = read.ReadLine()) != null)
{
Console.WriteLine(@"--------THIS IS A ORIGINAL CORPUS--------"+"\n"+"{0}",save);
builder += save.Replace("tional", "te").Replace("tive", "te").Replace("est", "").Replace("ion", "e").Replace("ed", "");
}
if ((builder == "a") || (builder == "i") || (builder == "e") || (builder == "o") || (builder == "u"))
builder += builder.Replace("ing", "");
Console.WriteLine("--------CORPUS AFTER STEMMING--------- "+"\n"+"{0}",builder);
Console.ReadLine();
}
}
}
Reply
Answers (
7
)
this application requires Log4net version 1.2.10.0.
how to add Module in C#