Skip to content
MSN

no repeated

A TG007 community discussion started by egyptian.

Discussion 4 posts
Page 1 of 1
Open
Topic #7062 · 4 published posts · 680 views

plz now i have a text and containing some data i need to make a check on this text to c if there is any type of repeated data to make it easier u can say the text file contains :

 

99

100

101

102

103

99

99

100

101

102

103

100

 

now need to make check to c the repeated data and remove it so the text file will be as next :

 

99

100

101

102

103

 

and no repeated data so may some one help me how can i do that ?!

You can use something like this...

 

if (!$read(sometext.txt,s,$1-) write sometext.txt $1-

 

Of course this is just a partial code. I don't know exactly what you are needing, but this gives a general idea of what you need to do. This example will scan "Sometext.txt" for the data that it receives, and if the data isn't found will write it to the text file.

/help /write -d ?

 

@warrior i did that and still repeated i did it before asking it minmized the amount of repeated data but still some of repeated

 

@orus done and couldn't be able to do more than code of warrior so i asked her cause alof of experince here