I had scenario where I have to delete the current line if I Have ';' at the end of current line and replace string in the previous line in the text file. Here is an example:
Prev line - I am Manish &
current Line - I went to college ;
Now I have to delete the current line as it has a ';' and replace '&' with ';' in the previous line.
Batkiri 0 Newbie Poster
Reverend Jim 5,179 Hi, I'm Jim, one of DaniWeb's moderators. Moderator Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.