Google Answers Logo
View Question
 
Q: ATTN secret901-ga ( Answered 5 out of 5 stars,   0 Comments )
Question  
Subject: ATTN secret901-ga
Category: Computers > Programming
Asked by: russjam-ga
List Price: $5.00
Posted: 03 May 2003 00:55 PDT
Expires: 02 Jun 2003 00:55 PDT
Question ID: 198758
With regards to question 146071 that you answered for uc1bear-ga,
could you provide the java program that you used to edit the file 
http://www.census.gov/ftp/pub/tiger/tms/gazetteer/places2k.txt
that gives only relevant data (without the extraenous data). 
I'm a beginner in Java and would like to compare what I would do to yours.

Thanx
Answer  
Subject: Re: ATTN secret901-ga
Answered By: secret901-ga on 03 May 2003 02:49 PDT
Rated:5 out of 5 stars
 
Hi russjam,
Thank you for taking an interest in my work!  Since I wrote the Java
program for myself, I originally didn't include any explanatory
comment.  Since it was intended for a one-time use, I just chose the
most straightforward way to implement it, instead of a possibly more
efficient method.

I have added explanatory comments to help with reading the code.  You
can download the files at
http://www.ics.uci.edu/~dhnguyen/FileExtraction/ .  The code consists
of three files.  The file named Extract.java contains the actual
algorithm to reduce extraneous data.  The other two files,
FileWriter.java and FileReader.java are two helper classes that I
often use to read to and write from files.  Download these three files
as well as the data file into the directory, and compile them.  When
you run Extract.class, it should produce the same output as mine.

I hope that this answered your question.  If there is anything you
don't understand in my code, feel free to request for a clarification
before rating this answer and I'll be happy to clarify.

Thanks,
secret901-ga

Clarification of Answer by secret901-ga on 03 May 2003 12:32 PDT
Oops, I meant to say "read from and write to," not "read to and write from."

secret901-ga
russjam-ga rated this answer:5 out of 5 stars
Answered promptly

Comments  
There are no comments at this time.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy