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
Vikas Negi
NA
6
973
replace double quotes with single quotes in a csv file.
Sep 21 2018 3:48 AM
Hi Folks ,
I have a request where we need to SFTP a CSV file after upting it. This CSV file consists of a column having XML data. This XML data is to be updated as below:
creating tags which works fine.but not able to replace " with '. Also "\"" splits the XML data.
if (line.Contains("<"))
{
line = line.Replace("<", "<");
}
if (line.Contains(">"))
{
line = line.Replace(">", ">");
}
if (line.Contains("\""))
{
line = line.Replace("\"", "\'"); (this wont work)
}
Can anybody help
Reply
Answers (
2
)
insert a value into text file from database in winform.
how to use exception handling in mvc?