Thursday, May 6, 2010

Work with Text - copy to Clipboard

TextBuffer txtb = new TextBuffer();

txtb.fromFile("myfile.txt"); // Read text from file
txtb.toClipboard(); // Copy it to the clipboard

----

// Create a Text File...

txtB.setText("CIAO");
txtB.toFile("c:\\denis.txt");

No comments: