Top

Hash Table to Text File and Sort


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  0.0
Scores Submitted  0
Date Added  Jan 07, 2008
Last Updated  Jan 11, 2008
Tags  .txt  file  hash  hashtable  table  text 
  Bookmark and Share

Introduction

This little ( started little any way ) will transfer a hash table to a text file and sort several different ways. Thanks to QuickStep for the " sorttxt " alias.

;Usage /htt HashTable WL/W FW/AW TextFile ( to omit $3 use a zero )
; WL = Word Length
; W = No Length
; FW = First Word
; AW = All Words
; Ex: /htt HashTable W --> Sorts HashTable alphabetically ( sent to Temp.txt ) <-- No data for HashTable
; Ex: /htt HashTable W FW --> Sorts HashTable alphabetically FirstWord ( sent to Temp.txt )
; Ex: /htt HashTable W FW TextFile --> Sorts HashTable alphabetically FirstWord ( sent to TextFile )
; Ex: /htt HashTable W 0 TextFile --> Sorts HashTable alphabetically ( sent to TextFile ) <-- No data for/used HashTable
; Ex: /htt HashTable W AW --> Sorts HashTable alphabetically " all words " ( sent to Temp.txt )
; EX: /htt HashTable W AW TextFile > Sorts HashTable alphabetically " all words " ( sent to TextFile )
; Ex: /htt HashTable WL --> Sorts HashTable " length of 1st word " ( sent to Temp.txt ) <-- No data for HashTable
; Ex: /htt HashTable WL FW --> Sorts HashTable WordLength " length of 1st word " ( sent to Temp.txt )
; Ex: /htt HashTable WL FW TextFile --> Sorts HashTable " length of 1st word " ( sent to TextFile )
; Ex: /htt HashTable WL 0 TextFile --> Sorts HashTable " length of 1st word " ( sent to TextFile ) <-- No data for/used HashTable
; Ex: /htt HashTable WL AW --> Sorts HashTable " length of all words " ( sent to Temp.txt )
; Ex: /htt HashTable WL AW TextFile --> Sorts HashTable " length of all words " ( sent to TextFile )

; It will check if the HashTable ( $1 ) exsist and if the TextFile ( $4 ) exsist it will let you know you can not use it.
; If the TextFile ( $4 ) does not exsist it will let you use it and will add " .txt " if you do not.
; If you try to use a FW/AW in the third position ( $3 ) and there is no data for the HashTable it will let you know.

;Usage /htt HashTable WL/W FW/AW TextFile ( to omit $3 use a zero )
; WL = Word Length
; W = No Length
; FW = First Word
; AW = All Words

Grab the Code

Comments

  (0)  RSS

Please Register or Login to start posting comments.
Bottom