Zelaron Gaming Forum  
Stats Arcade Portal Forum FAQ Community Calendar Today's Posts Search
Go Back   Zelaron Gaming Forum > Zelaron Gaming > Diablo III > Diablo I & II

 
 
Thread Tools Display Modes

 
Know how to do this?
Reply
Posted 2004-08-30, 03:27 AM
I have a text file with 37,000 words within it (1 word per line) ranging from 1 character to 11 characters per word. I was wondering if anyone knew a way to remove all the words that are 3 characters and less from the list without going threw and searching forever.
Old
Profile PM WWW Search
nddwind is neither ape nor machine; has so far settled for the in-betweennddwind is neither ape nor machine; has so far settled for the in-between
 
 
nddwind
 



 
Reply
Posted 2004-08-30, 04:32 AM in reply to nddwind's post "Know how to do this?"
LOL.

Password file?

Easily done in PHP/AutoIT.

Here, I'll even make the whole thing for you, I'm pretty bored:

rem 3 chars and under.au3

Code:
; ----------------------------------------------------------------------------
;
; AutoIt Version: 3.0
; Language:       English
; Platform:       Win9x / NT
; Author:         Insolence <insolence_9@yahoo.com>
;            AIM: insolence9dotcom
;
; Script Function:
;  Remove words from input file that contain less than 3 letters.
;
; ----------------------------------------------------------------------------

; ----------------------------------------------------------------------------
; Script Start
; ----------------------------------------------------------------------------

$input = FileOpen ( "passwords.txt", 0 )
$output = FileOpen ( "output.txt" , 2 )

; Check if file opened for reading OK
If $input = -1 Then
    MsgBox(0, "Error", "Unable to open file.")
    Exit
EndIf

DIM $LineArray[99999]
$Line = 0

; Read in lines of text until the EOF is reached
While 1
    $TempString = FileReadLine($input)
    If @error = -1 Then ExitLoop
    
    $strlen = StringLen ( $TempString )
    
    If $strlen > 3 Then
      $LineArray[$Line] = $TempString
      $Line = $Line + 1
    EndIf
Wend

$TempLine = 0

While $TempLine < $Line
  FileWriteLine($Output, $LineArray[$TempLine])
  $TempLine = $TempLine + 1
WEnd

FileClose($input)
FileClose($output)
Passwords.txt

Code:
1
22
333
4444
55555
666666
7777777
88888888
999999999

Creates:
output.txt

Code:
4444
55555
666666
7777777
88888888
999999999
PLEASE read the help file... the questions you ask are almost written write out for you... wait, they ACTUALLY are.

You could even modify that to put them in order.
Old
Profile PM WWW Search
`Insolence` is neither ape nor machine; has so far settled for the in-between`Insolence` is neither ape nor machine; has so far settled for the in-between
 
 
`Insolence`
 



 
Reply
Posted 2004-08-30, 09:53 AM in reply to nddwind's post "Know how to do this?"
Man, don't put this shit in the D2 section...
D3V said:
This message is hidden because D3V is on your ignore list.
What is it they say about silence being golden?
Old
Profile PM WWW Search
Medieval Bob enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHzMedieval Bob enjoys the static noises of ten television sets simultaneously tuned to 412.84 MHz
 
 
Medieval Bob
 



 
Reply
Posted 2004-08-30, 10:23 AM in reply to Medieval Bob's post starting "Man, don't put this shit in the D2..."
*confused as all hell*

Where do you guys learn this crap?
Old
Profile PM WWW Search
SkyGoneBlue is neither ape nor machine; has so far settled for the in-betweenSkyGoneBlue is neither ape nor machine; has so far settled for the in-between
 
SkyGoneBlue
 



 
Reply
Posted 2004-08-30, 10:25 AM in reply to SkyGoneBlue's post starting "*confused as all hell* Where do you..."
Muhahaha

thanks again bro
Old
Profile PM WWW Search
nddwind is neither ape nor machine; has so far settled for the in-betweennddwind is neither ape nor machine; has so far settled for the in-between
 
 
nddwind
 



 
Reply
Posted 2004-08-30, 11:16 AM in reply to nddwind's post starting "Muhahaha thanks again bro"
I taught myself... nddwind doesn't know what he's doing -.-
Old
Profile PM WWW Search
`Insolence` is neither ape nor machine; has so far settled for the in-between`Insolence` is neither ape nor machine; has so far settled for the in-between
 
 
`Insolence`
 



 
Reply
Posted 2004-08-30, 02:49 PM in reply to Medieval Bob's post starting "Man, don't put this shit in the D2..."
Medieval Bob said:
Man, don't put this shit in the D2 section...
He posted the same thread in another forum, and Sovereign closed it.

Anyway, odds are that someone in D2 knew what he was doing and knew how to do what he wanted.
Old
Profile PM WWW Search
Vollstrecker shows clear signs of ignorance and confidence; the two things needed to succeed in lifeVollstrecker shows clear signs of ignorance and confidence; the two things needed to succeed in life
 
 
Vollstrecker
 
 

Bookmarks

« Previous Thread | Next Thread »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules [Forum Rules]
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 10:34 AM.
'Synthesis 2' vBulletin 3.x styles and 'x79' derivative
by WetWired the Unbound and Chruser
Copyright ©2002-2008 zelaron.com
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.