Aight ppl i am in search of a script which will be helping in my work alot.

i need a script, which can read one file and detect changes in it.

eg: like i want to track the gain/loss of castles in a game.

Rank Name Castle Land Kingdom Strength Race
1 Maximus Decimus Meridius(Roman Empire, Lithar 22) 2 133 3175 Orc
2 fEaRdArEaPeR(Kokanee, Lithar 32) 3 120 3148 Gnome
3 A cup(Tea, Lithar 5) 2 133 2923 Gnome
4 Le SigNagE(Xanthomatosis, Lithar 34) 5 69 2569 Orc
5 Diehard(Molsen Canadian, Lithar 32) 1 102 2543 Gnome
6 DoYouHaveALittleGnomeInU?(WouldYouLikeToo?, Lithar 18) 3 102 2479 Gnome
7 Lord Valcer(Aesry, Lithar 27) 1 83 2362 Human
8 Jorgie(Corona Lite, Lithar 32) 5 75 2330 Orc


i paste this rankings in a file. then after an hour when the kingdoms update i copy paste em again on the same file, i want a program which can compare both the lists and tell me if anyone has gained or lost castles and land.


i know i can t explain myself very nicely but if u can help me it would be greatly appreciated.

~fEaR

Recommended Answers

All 12 Replies

as simply as i can put it.

if i paste the hall of fame in a file. the program shud compare the two and let me know of any changes

i want a program which can compare both the lists and tell me if anyone has gained or lost castles and land.

Does your OS already come with one? There's FC on my Windows box.

FC Compares two files or sets of files, and displays the differences between them.

what is FC?

i have never seen such a program in windows XP ( which i am using)

>what is FC?
"File Compare"

>i have never seen such a program in windows XP ( which i am using)
Open a command shell: type help and/or help fc.

it is giving me a list of some commands but i dont know what to do with them... i am such a n00b :o

Did you try help fc -- it tells you how to use it.

Compares two files or sets of files and displays the differences between
them


FC [/A] [/C] [/L] [/LBn] [/N] [/T] [/U] [/W] [/nnnn] [drive1:][path1]filename1
          [drive2:][path2]filename2
FC /B [drive1:][path1]filename1 [drive2:][path2]filename2

   /A     Displays only first and last lines for each set of differences.
   /B     Performs a binary comparison.
   /C     Disregards the case of letters.
   /L     Compares files as ASCII text.
   /LBn   Sets the maximum consecutive mismatches to the specified number of
          lines.
   /N     Displays the line numbers on an ASCII comparison.
   /T     Does not expand tabs to spaces.
   /U     Compare files as UNICODE text files.
   /W     Compresses white space (tabs and spaces) for comparison.
   /nnnn  Specifies the number of consecutive lines that must match after a
          mismatch.

i have nvr used command prompt b4.

can u tell me how to enter filenames ?

For example,

C:\Test>fc file.txt test.txt

its getting so confusing....

isnt there any program which is easier than this FC?

and how will i enter the "/whatever" commands

its getting so confusing....

isnt there any program which is easier than this FC?

and how will i enter the "/whatever" commands

If you're having trouble with something as simple as FC, I think creating your own program to do what FC does is asking a bit much.

Post some code of any initial attempt you make, perhaps I have misjudged.


By the way, experiment a little. It's how a lot of us learned these things. Waiting to be spoonfed leaves something to be desired.

i do not know anything abt coding.

>i do not know anything abt coding.
Then what are you doing here? You wanted someone to suggest a "script" that you clearly lack the computing literacy to run on a forum that expects you to know enough to actually make an attempt at writing one.

>isnt there any program which is easier than this FC?
There's a point at which programs cannot be dumbed down any further. If you still have a problem, it's obviously your problem. Please see my signature, and repeat it until critical mass is achieved and you pass out.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.