can any say how to remove the duplicates in a text file from the database
6 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 10, 2017, 6:35 PM EST
0
Dear Friend, it is ONLY you who is aware of your situation. We are the people very limited imagination (or atleast I am)!
Could you please elaborate a bit? What database, what file? which duplicates? Any sample data? anything to look at and understand what you want to achieve?
0
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 10, 2017, 6:53 PM EST
0
I still don't understand my dear friend. Please type more. Please tell EVERYTHING.
Assuming you are having a windows forms application, you can do something like:
String strFilename = "C:\temp\somefile.txt"; // put your filename here.
Bobi BRank #3,615 · 403 reputationPosted Mar 10, 2017, 7:12 PM EST
0
sorry
Nitin Sontakke,, i am a beginer , in my uploaded file ,, my project is there,, in that i have to upload one text file,, after uploading i should remove the duplicates in that particular text file,,, pls help
0
Ramesh PalanivelRank #372 · 6.8K reputationPosted Mar 10, 2017, 11:06 PM EST
0
Hi Bobi,
Try this code,
to read text in text file using file streamreader,
var fileStream = new FileStream(@"c:\file.txt", FileMode.Open, FileAccess.Read);
using (var streamReader = new StreamReader(fileStream, Encoding.UTF8))
i am developing a project on Removing duplicated chracters from a text file, i created a code to remvce the repeated words from a .txt file and its saving in a folder , but dont know how to insert in to database,, pls any one help
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 10, 2017, 6:35 PM EST
Nitin SontakkeRank #264 · 9.6K reputationPosted Mar 10, 2017, 6:53 PM EST
Bobi BRank #3,615 · 403 reputationPosted Mar 10, 2017, 7:12 PM EST
Nitin Sontakke,, i am a beginer , in my uploaded file ,, my project is there,, in that i have to upload one text file,, after uploading i should remove the duplicates in that particular text file,,, pls help
Ramesh PalanivelRank #372 · 6.8K reputationPosted Mar 10, 2017, 11:06 PM EST
Bobi BRank #3,615 · 403 reputationPosted Mar 12, 2017, 11:29 PM EDT
Ramesh PalanivelRank #372 · 6.8K reputationPosted Mar 13, 2017, 7:52 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts