Move files in anticipation of move to modular system

This commit is contained in:
2016-07-03 12:28:35 +01:00
commit 5a6ca8046c
33 changed files with 3939 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
package pipe;
import java.io.RandomAccessFile;
public class Client {
public static void main(String[] args) {
try {
// Connect to the pipe
RandomAccessFile pipe = new RandomAccessFile("\\\\.\\pipe\\detest", "rw");
String echoText = "Hello word\n";
// write to pipe
pipe.write(echoText.getBytes());
// read response
String echoResponse = pipe.readLine();
System.out.println(echoResponse);
pipe.close();
} catch (Exception e) {
e.printStackTrace();
}
}
}