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
Björn Kreye
NA
7
614
How to change Headline in Linq
Sep 8 2018 4:57 AM
var lines = File.ReadLines(readFolderFile, Encoding.Default)
.Select((line, index) =>
new
{ Line = line.Trim(
';'
), LineNumber = index + 1 })
.Where(x => !String.IsNullOrWhiteSpace(x.Line))
.Select(x => $
"{x.LineNumber};{x.Line};"
);
Hi Guys the code above I use to read files and then put them as strings into a IEnumerable.
I just have the problem that all first rows should be HeadLines but in my LineNumber column im getting 1 as the name is there a way to change that and write "RowNumber" instead?
Reply
Answers (
3
)
How do I get the huge data from web.api?
Webchase data was changed after execute LINQ query.