I decided to make a procedure removing dupe lines *after* the file creation ; here's a working code but of course there must be some limitations ( size of text file certainly ...)
Procedure RemDupes()
OpenFile(1,"range.dic")
While Eof(1) = 0
text$=text$+Trim(ReadString())+Chr(42)
Wend ...
Search found 18 matches
- Sat Oct 09, 2004 6:46 pm
- Forum: Coding Questions
- Topic: Cleaning a txt file from dupes ...
- Replies: 4
- Views: 1391
- Fri Oct 08, 2004 8:58 pm
- Forum: Coding Questions
- Topic: Cleaning a txt file from dupes ...
- Replies: 4
- Views: 1391
- Fri Oct 08, 2004 2:54 pm
- Forum: Coding Questions
- Topic: Cleaning a txt file from dupes ...
- Replies: 4
- Views: 1391
Cleaning a txt file from dupes ...
Im looking for a way to clean a txt file from all the dupes inside
For example transform :
../file.txt
amero
ameri
amerp
amero
amerp
amera
in ../file.txt
ameri
amera
so removing amerp / amero
heres a part of code i wrote :
Procedure CleanText()
totalstring.l=CountString(textdata,".") + 1 ...
For example transform :
../file.txt
amero
ameri
amerp
amero
amerp
amera
in ../file.txt
ameri
amera
so removing amerp / amero
heres a part of code i wrote :
Procedure CleanText()
totalstring.l=CountString(textdata,".") + 1 ...
- Tue Oct 05, 2004 7:11 pm
- Forum: Coding Questions
- Topic: Adding String in a ListView
- Replies: 3
- Views: 1249
- Tue Oct 05, 2004 4:21 pm
- Forum: Coding Questions
- Topic: Adding String in a ListView
- Replies: 3
- Views: 1249
Adding String in a ListView
Im currently looking for "loading" a text file in a ListView Gadget , each line of the text on a ListView one.
My problem is that the
SendMessage_(GadgetID(#ListView_0), #LB_ADDSTRING, 0, String)
doesnt seem to work for me .. i bet i m wrong with the OpenFile command trying to retrieve each line ...
My problem is that the
SendMessage_(GadgetID(#ListView_0), #LB_ADDSTRING, 0, String)
doesnt seem to work for me .. i bet i m wrong with the OpenFile command trying to retrieve each line ...
- Fri Jun 11, 2004 1:04 pm
- Forum: Coding Questions
- Topic: Difficulties with NT service
- Replies: 2
- Views: 1275
- Thu Jun 10, 2004 12:54 pm
- Forum: Coding Questions
- Topic: Difficulties with NT service
- Replies: 2
- Views: 1275
Difficulties with NT service
I wrote a simple mail checker and wanted add it as a NT service on my windows XP to check if mails where on my ISP account.
I of course tried the NT Service script from purearea.net allready given here : http://forums.purebasic.com/english/viewtopic.php?t=8762&highlight=nt+service
I removed the ...
I of course tried the NT Service script from purearea.net allready given here : http://forums.purebasic.com/english/viewtopic.php?t=8762&highlight=nt+service
I removed the ...
- Fri May 28, 2004 6:30 pm
- Forum: Coding Questions
- Topic: Trying to write a simple mirc DLL
- Replies: 0
- Views: 822
Trying to write a simple mirc DLL
As i often use mIRC and as im a bit addicted , i am looking to write some simple dll to test "DLL supports"
I browsed the forum and found a thread about ... sorry if i dont report here the name of this guy :
ProcedureDLL hello(mWnd,aWnd,command.s,param.s,show.b,nopause.b)
I was looking for ...
I browsed the forum and found a thread about ... sorry if i dont report here the name of this guy :
ProcedureDLL hello(mWnd,aWnd,command.s,param.s,show.b,nopause.b)
I was looking for ...
- Fri Apr 16, 2004 1:08 pm
- Forum: Coding Questions
- Topic: Create/Work a database of words
- Replies: 7
- Views: 2228
Create/Work a database of words
Well im working since a few days on a medical database for student like me through our intranet chat program ...
I was looking to create a little routine in Purebasic to check for a word in a list ... the list is named definitions.dat , and each line has a structure like this :
"word : definition ...
I was looking to create a little routine in Purebasic to check for a word in a list ... the list is named definitions.dat , and each line has a structure like this :
"word : definition ...
- Wed Apr 07, 2004 12:31 am
- Forum: Coding Questions
- Topic: problem with REG_lib and registry functions ..
- Replies: 0
- Views: 730
problem with REG_lib and registry functions ..
Well i tried this library and at least i must say it works really well
By the way , the registry entries i add are only from the type REG_SZ ; could you give me a hand or a tip to add a REG_DWORD value ? Or do i need to try another way ?
By the way , the registry entries i add are only from the type REG_SZ ; could you give me a hand or a tip to add a REG_DWORD value ? Or do i need to try another way ?
- Thu Feb 19, 2004 8:33 pm
- Forum: Coding Questions
- Topic: Http Request
- Replies: 3
- Views: 1491
- Thu Feb 19, 2004 6:20 pm
- Forum: Coding Questions
- Topic: Http Request
- Replies: 3
- Views: 1491
Http Request
Im a totally beginner as i said before ... no Delphi , no C ; only PureBasic discovered a few days ago :
There is my first code :
OpenConsole()
Structure HTTPReq
head.s
langage.s
agent.s
host.s
conn.s
EndStructure
Global URL$
Global EOL$
URL$ = "http://whois.arin.net"
EOL$ = Chr(13 ...
There is my first code :
OpenConsole()
Structure HTTPReq
head.s
langage.s
agent.s
host.s
conn.s
EndStructure
Global URL$
Global EOL$
URL$ = "http://whois.arin.net"
EOL$ = Chr(13 ...
- Tue Feb 17, 2004 5:30 pm
- Forum: Coding Questions
- Topic: Returning txt in the right console ...
- Replies: 2
- Views: 1052
- Tue Feb 17, 2004 11:33 am
- Forum: Coding Questions
- Topic: About console parameters
- Replies: 5
- Views: 1784
- Tue Feb 17, 2004 11:32 am
- Forum: Coding Questions
- Topic: Returning txt in the right console ...
- Replies: 2
- Views: 1052
Returning txt in the right console ...
Well im now addicted to Purebasic nad had some troubles for my first application ... its a console-based one , and i learnd to use parameters
ex: reg.exe -n NAME -r REALNAME
btw , i would like to add a reg.exe which will give a detailled help in the same console windows on NT/XP , cause when i ...
ex: reg.exe -n NAME -r REALNAME
btw , i would like to add a reg.exe which will give a detailled help in the same console windows on NT/XP , cause when i ...