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
praveen kumar
NA
39
0
how to store text file lines to arry using C#
Jul 22 2017 2:09 AM
showing error
using (StreamReader r = new StreamReader(filename)
{
string s = string.Empty;
int i = 0;
while ((i = r.Read()) != -1)
{
Char c = Convert.ToChar(i);
if (Char.IsDigit(c) || Char.IsLetter(c))
{
s = s + c;
}
else
{
if (s.Trim() != string.Empty)
Console.WriteLine(s);
s = string.Empty;
}
}
Reply
Answers (
1
)
How to call curl in c#
The remote server returned an error: (400) Bad Request