Hi there, I am a newbie in C# (also in coding).
now I am trying to extract some specific information from a text file and try to write in .csv format file. I know basic read and write formula. but can't solve this specific problem. Plz, anybody suggest me any possible solution. text files are attached here.
I uploaded the destination.csv file as destination.txt file,

thx in advance

Recommended Answers

All 3 Replies

Perhaps if you explained what information you were attempting to extract then someone could help you. Please explain what you are trying to accomplish.

I want to read from the source.txt (which I have uploaded in previous post), I want to read the file and extract data marked in green box (left image), and delete red marked box and then write the extracted data to another file like in (right image).
I believe it is called text parsing.
thnx for reading

Ok for now I utilize the Regular Expression and solve the primary problem.
But I believe there are lot of other useful ways.
Thanks for your reading.

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.