#!/usr/bin/perl
open FILE, "theTestFile.txt" or die "can't open file";
while (<FILE>) { $a{$_}=1; }
for (keys %a) { print; }
close FILE;
PERL can be run on windows, MAC, unix or linux
if you have to use Java, check java's hash table class.
if you have to use C, check oreilly.com
it has a famous 'Algorithm in C'. Chapter 8 can be free downloaded
The hash table code is included.
You don't need to do any sorting. waste time.
Sorry for the English. I don't have Chinese in my pc
I have tried the code on our solaris server, it works
Cheers.
open FILE, "theTestFile.txt" or die "can't open file";
while (<FILE>) { $a{$_}=1; }
for (keys %a) { print; }
close FILE;
PERL can be run on windows, MAC, unix or linux
if you have to use Java, check java's hash table class.
if you have to use C, check oreilly.com
it has a famous 'Algorithm in C'. Chapter 8 can be free downloaded
The hash table code is included.
You don't need to do any sorting. waste time.
Sorry for the English. I don't have Chinese in my pc
I have tried the code on our solaris server, it works
Cheers.