Hello, Thanks for the reply Tony. It seems I have to name the LCDWriter class explicitly in my import: import hep.lcd.io.sio.lcd.LCDWriter; Then the class is found. The io exception was being thrown because I was trying to write out events generated with GEANT4 instead of Gismo. I switched over to some Gismo events and the io exception went away. However, nothing is being written out to the file. Everything seems to run fine, but the output file never changes size after creation. And when I try to open the file to view the events jas reports "souce was exhausted after 0 records supplied". So I have two questions: 1. Why are the events not being written out? 2. Is there a way I could alter the LCDWriter class to write out the GEANT4 events? -Brandon On Sun, 2003-06-29 at 02:45, Tony Johnson wrote: > HI, > > > import hep.lcd.io.*; > > I think you need > > import hep.lcd.io.sio.lcd.*; > > > LCDWriter lcdout = new LCDWriter( outfile.sio ); > > > > the compiler complains that it can't find the LCDWriter class. Am I > > missing some sort of import or using this improperly? To use it I've > > copied the code from the api site and created my own LCDWriter class > > (unaltered). > > You pass is any OutputStream, although a typical usage would be something > like: > > OutputStream out = new FileOutputStream("mydata.sio"); > LCDWriter lcdout = new LCDWriter(out); > > for (int i=0; i<1000; i++) > { > LCDEvent e = ... > lcdout.write(e); > } > > lcdout.close(); > > Tony >