diff --git a/DEV2.1/CM2/Prototype.class b/DEV2.1/CM2/Prototype.class new file mode 100644 index 0000000..c862fcc Binary files /dev/null and b/DEV2.1/CM2/Prototype.class differ diff --git a/DEV2.1/CM2/Prototype.java b/DEV2.1/CM2/Prototype.java new file mode 100644 index 0000000..08d32c3 --- /dev/null +++ b/DEV2.1/CM2/Prototype.java @@ -0,0 +1,49 @@ +//Patrick Felix-Vimalaratnam + +import java.io.File; +import java.io.IOException; +import java.io.FileOutputStream; + +public class Prototype{ + public static void main(String[] args) { + if (args.length == 0) { + System.err.println("Manque le nom du fichier"); + System.exit(1); + } + String nom = new String(); + for (int i=0; i