Re: Removing new line from CSV? [spamtrap bayes][spamtrap heur]

2010-09-16 Thread Rick Root
On Thu, Sep 16, 2010 at 12:04 AM, Paul Hastings p...@sustainablegis.com wrote: On 9/16/2010 2:45 AM, Rick Root wrote: http://www.opensourcecf.com/1/2010/09/Example-of-using-JavaCSV-CSVReader-class-to-read-CSV-files.cfm pretty sure the numeric columns for csvReader are 0 based (ie 1st column

Re: Removing new line from CSV? [spamtrap bayes][spamtrap heur]

2010-09-15 Thread Paul Hastings
On 9/15/2010 9:33 PM, Rick Root wrote: The third line errors with the following error: An exception occurred when instantiating a Java object. The class must not be an interface or an abstract class. out of curiosity i gave that lib a spin, very nice. your error looks like a poorly worded

Re: Removing new line from CSV? [spamtrap bayes][spamtrap heur]

2010-09-15 Thread Rick Root
On Wed, Sep 15, 2010 at 1:01 PM, Paul Hastings p...@sustainablegis.com wrote: your error looks like a poorly worded file not found message. try full path to CSV file. Yeah, that was it. And yes, VERY poorly worded =) Rick

Re: Removing new line from CSV? [spamtrap bayes][spamtrap heur]

2010-09-15 Thread Rick Root
Okay, I wrote some sample code and tested it for using JavaCSV to read a CSV file. http://www.opensourcecf.com/1/2010/09/Example-of-using-JavaCSV-CSVReader-class-to-read-CSV-files.cfm My test file didn't have headers so this just generically dumps the csv into a very generic query. Rick

Re: Removing new line from CSV? [spamtrap bayes][spamtrap heur]

2010-09-15 Thread Paul Hastings
On 9/16/2010 2:45 AM, Rick Root wrote: http://www.opensourcecf.com/1/2010/09/Example-of-using-JavaCSV-CSVReader-class-to-read-CSV-files.cfm pretty sure the numeric columns for csvReader are 0 based (ie 1st column is referenced as 0 not 1). yes, i'm too lazy to register on your blog.