The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
January 2002

Advertisement

Advertisement

This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.

Message:

Here is the code--i think nthe problem has something to do with a string tokenizer?

Posted by Justin Dutro on January 17, 2002 at 1:16 PM

// pipeline
IDataHashCursor pipelineCursor = pipeline.getHashCursor();
pipelineCursor.first( "inString" );
String inString = (String) pipelineCursor.getValue();
pipelineCursor.first( "filename" );
String filename = (String) pipelineCursor.getValue();
pipelineCursor.destroy();

try{
FileWriter log = new FileWriter(filename, true);
log.write(inString);
log.flush();
log.close();
} catch(IOException e){
System.out.println(e.toString());
}






Replies:

Sponsored Links



Google
  Web Artima.com   
Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us