|
|
|
 |
Posted 2004-08-30, 05: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 <[email protected]>
; 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.
|
 |
 |
 |
|
|
|
|
|
|
|