...

View Full Version : using servlets to work on data from text files?



fip04
03-26-2004, 09:51 AM
Hi,
i have two text files (abcd.txt and efgh.txt). text file abcd.txt
contains names of districts in a country with their area values whereas the file efgh.txt contains the names of the same districts but with their population values.
now i want to write a servlet that extracts the 'area' values from abcd.txt and 'population' values from efgh.txt and calculates Density ie divides the area values by the population values and obtain the result.
since i am new to Servlets, i am in desperate need of help in
proceeding with the above functionality.
thanks in advance.

glenngv
03-29-2004, 08:23 AM
http://java.sun.com/j2se/1.4.2/docs/api/java/io/FileInputStream.html



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum