473,320 Members | 1,881 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Deleting FileContent Partially

Hi,
i hava a file(.txt) which will have duplicate occurances of strings
I want to delete duplicates
how can i ?
Apr 27 '07 #1
4 1035
dmjpro
2,476 2GB
welcome JagadeeshPavan TSDN.

how much u tried urself?

try some code then if any problem then post ur code and elaborate ur problems.

best of luck JagadeeshPavan.
Apr 27 '07 #2
r035198x
13,262 8TB
Hi,
i hava a file(.txt) which will have duplicate occurances of strings
I want to delete duplicates
how can i ?
What ideas do you have for doing it? Have you written down your algorithm yet?
Apr 27 '07 #3
JosAH
11,448 Expert 8TB
Hi,
i hava a file(.txt) which will have duplicate occurances of strings
I want to delete duplicates
how can i ?
Are these duplicate lines adjacent or can duplicates occur anywhere in the
file, i.e. with other lines in between?

kind regards,

Jos
Apr 27 '07 #4
dmjpro
2,476 2GB
i think u r talking about duplicate word.

try this algo.......

1.at first get the total content of the file.
2.then tokenize the each word.
3.then store each word in vector.
while tokeninzing check duplicate occurance and only then store if no duplicate occurance.

4.finally put all the vector elements into the file.

have a good luck.
Apr 27 '07 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: geradeaus | last post by:
Even if you upload an image partially with ftp software, you can still read the image. Only the image will be partially gray. So, can I determine with a php-function if an image is fully uploaded...
6
by: Amit Kela | last post by:
I am using ASP with SQL for my database. The problem I have is that even after I have ordered certain items from the shopping cart table on the webpage, I cannot remove them - that is the entire...
6
by: Min | last post by:
CFool { public: void StartWorldWarIII() { /*** Launch Nuclear Missiles **/ } }; int main() { CFool* pFool = new CFool(); delete pFool;
11
by: Chris Croughton | last post by:
I have a requirement to partially preprocess C code. By 'partially' I mean that I need to define some macros (to the utility) and have it preprocess only those macros, leaving everything else...
7
by: Baskar RajaSekharan | last post by:
Hi Plase let me know how to erase filecontent in C-Sharp with some sample code. Regards, R.Baskar
3
by: Wolfgang | last post by:
Is it possible in C# .NET to create a window that is always on top of all other windows, while at the same time being partially transparent? If not in C# .NET, how about in C++ .NET? As an...
18
by: Luke Skywalker | last post by:
Hi guys, I have to simulate the removing of a file in Windows with Javascript: in other words I drag an image above a layer and the image disappears (like the recycle bin). I know (or better I...
4
by: g3000 | last post by:
I developed on a Win2K3 Server with VS 2005 Published a web app to my local drive. Copied that folder to a Win2K3 Server. Configured a new virtual directory Moved the files there. Modified...
5
by: FefeOxy | last post by:
Hi, > I'm having a debug assertion error within the file dbgdel.cpp with the expression: _BLOCK_TYPE_IS_VALID(pHead->nBlockUse) I traced the origin of the error and it happened as I tried to...
8
by: Rahul | last post by:
Hi, Is there a way to partially specialize only a member function of a template class (not the whole class). e.g. template <typename A, typename B> class Base { public:
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.