commit 5836bdbe4afea1e5a58135ee8b20f7c238fa932e Author: Ivan Morell Date: Mon Oct 3 17:49:03 2022 +0200 MiPush diff --git a/.classpath b/.classpath new file mode 100644 index 0000000..57bca72 --- /dev/null +++ b/.classpath @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/.project b/.project new file mode 100644 index 0000000..c2574ca --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + MiCat + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.core.javanature + + diff --git a/.settings/org.eclipse.core.resources.prefs b/.settings/org.eclipse.core.resources.prefs new file mode 100644 index 0000000..99f26c0 --- /dev/null +++ b/.settings/org.eclipse.core.resources.prefs @@ -0,0 +1,2 @@ +eclipse.preferences.version=1 +encoding/=UTF-8 diff --git a/.settings/org.eclipse.jdt.core.prefs b/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 0000000..8c9943d --- /dev/null +++ b/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,14 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=17 +org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve +org.eclipse.jdt.core.compiler.compliance=17 +org.eclipse.jdt.core.compiler.debug.lineNumber=generate +org.eclipse.jdt.core.compiler.debug.localVariable=generate +org.eclipse.jdt.core.compiler.debug.sourceFile=generate +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning +org.eclipse.jdt.core.compiler.release=enabled +org.eclipse.jdt.core.compiler.source=17 diff --git a/bin/MiCat/MiCat.class b/bin/MiCat/MiCat.class new file mode 100644 index 0000000..dfaaf0d Binary files /dev/null and b/bin/MiCat/MiCat.class differ diff --git a/bin/module-info.class b/bin/module-info.class new file mode 100644 index 0000000..af54f77 Binary files /dev/null and b/bin/module-info.class differ diff --git a/src/MiCat/MiCat.java b/src/MiCat/MiCat.java new file mode 100644 index 0000000..5bac78c --- /dev/null +++ b/src/MiCat/MiCat.java @@ -0,0 +1,28 @@ +package MiCat; + +import java.io.FileOutputStream; +import java.io.IOException; +import java.util.Scanner; + +public class MiCat { + public static void main(String[] args) { + Scanner leer=new Scanner(System.in); + String ruta="."; + + if (args.length>=1) { + ruta = args[0]; + } + try(FileOutputStream f0s=new FileOutputStream(ruta)){ + String contra = ""; + + while(!contra.equals("\\")){ + System.out.println("Dime cositas :D"); + contra = leer.next(); + f0s.write(contra.getBytes()); + } + System.out.println("No quiero saber mas!"); + }catch(IOException e){ + + } + } +} diff --git a/src/module-info.java b/src/module-info.java new file mode 100644 index 0000000..28e3d7d --- /dev/null +++ b/src/module-info.java @@ -0,0 +1,9 @@ +/** + * + */ +/** + * @author Ivan + * + */ +module MiCat { +} \ No newline at end of file