That is all information that would get handled before the actual output of the file, isn't it? I didn't have to handle anything like that for my usage of the code from my earlier post - by the time I'd broken it down as I needed I was just dealing with Strings and ints. But since there's no formatting for CSV's, that's all you'll be dealing with when you write the file. (In some instances (data) can be the result of a toString())
-Andrew > -----Original Message----- > From: Levi Strope [mailto:[EMAIL PROTECTED] > Sent: Monday, June 25, 2007 3:45 PM > To: POI Users List > Subject: RE: Generate csv file using poi > > But how do you know the data is a cell and not a cell format record, > etc? > > -----Original Message----- > From: Fallows, Andrew [mailto:[EMAIL PROTECTED] > Sent: Monday, June 25, 2007 3:30 PM > To: POI Users List > Subject: RE: Generate csv file using poi > > I don't know if it is possible using (a) POI class(es), but I did it > with no trouble using regular Java constructs and the FileWriter class: > > FileWriter fileOut = new FileWriter("F:/(path)/(filename).csv",true); > fileOut.write((data) + "," + (data) + "," + (data)); fileOut.flush(); > > Shouldn't be any more to it. I've actually used this to simplify from > Excel format to CSV after performing other operations on the data I was > using. > > HTH, > Andrew > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
