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..8f04705 --- /dev/null +++ b/.project @@ -0,0 +1,17 @@ + + + MiCopy + + + + + + 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/README.md b/README.md index 7e737b4..d38008b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,361 @@ # MyCopy +Subo My copy que se me habia olvidado subirlo + +salida por consola: + +~~~ +textp.dat +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +\ +| +/ +- +1% +@@___________________________________________________________________________________________________ +1% +@@___________________________________________________________________________________________________ +2% +@@@__________________________________________________________________________________________________ +3% +@@@@_________________________________________________________________________________________________ +4% +@@@@@________________________________________________________________________________________________ +5% +@@@@@@_______________________________________________________________________________________________ +6% +@@@@@@@______________________________________________________________________________________________ +6% +@@@@@@@______________________________________________________________________________________________ +7% +@@@@@@@@_____________________________________________________________________________________________ +8% +@@@@@@@@@____________________________________________________________________________________________ +9% +@@@@@@@@@@___________________________________________________________________________________________ +10% +@@@@@@@@@@@__________________________________________________________________________________________ +11% +@@@@@@@@@@@@_________________________________________________________________________________________ +12% +@@@@@@@@@@@@@________________________________________________________________________________________ +12% +@@@@@@@@@@@@@________________________________________________________________________________________ +13% +@@@@@@@@@@@@@@_______________________________________________________________________________________ +14% +@@@@@@@@@@@@@@@______________________________________________________________________________________ +15% +@@@@@@@@@@@@@@@@_____________________________________________________________________________________ +16% +@@@@@@@@@@@@@@@@@____________________________________________________________________________________ +17% +@@@@@@@@@@@@@@@@@@___________________________________________________________________________________ +18% +@@@@@@@@@@@@@@@@@@@__________________________________________________________________________________ +18% +@@@@@@@@@@@@@@@@@@@__________________________________________________________________________________ +19% +@@@@@@@@@@@@@@@@@@@@_________________________________________________________________________________ +20% +@@@@@@@@@@@@@@@@@@@@@________________________________________________________________________________ +21% +@@@@@@@@@@@@@@@@@@@@@@_______________________________________________________________________________ +22% +@@@@@@@@@@@@@@@@@@@@@@@______________________________________________________________________________ +23% +@@@@@@@@@@@@@@@@@@@@@@@@_____________________________________________________________________________ +24% +@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________________________________________ +24% +@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________________________________________ +25% +@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________________________________________________ +26% +@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________________________________________________ +27% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________________________________________________ +28% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________________________________________________ +29% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________________________________________________ +30% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________________________________________________ +30% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________________________________________________ +31% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________________________________________________ +32% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________________________________ +33% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________________________________________ +34% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________________________________________ +35% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________________________________________ +36% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________________________________________ +36% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________________________________________ +37% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________________________________________ +38% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________________________________________ +39% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________________________________________ +40% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________________________ +41% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________________________________ +42% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________________________________ +42% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________________________________ +43% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________________________________ +44% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________________________________ +45% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________________________________ +46% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________________________________ +47% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________________________________ +48% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________________ +48% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________________ +49% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________________________ +50% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________________________ +51% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________________________ +52% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________________________ +53% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________________________ +53% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________________________ +54% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________________________ +55% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________________________ +56% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________________ +57% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________________ +58% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________________ +59% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________________ +59% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________________ +60% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________________ +61% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________________ +62% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________________ +63% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________________ +64% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________________ +65% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________ +65% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________________ +66% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________________ +67% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________________ +68% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________________ +69% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________________ +70% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________________ +71% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________ +71% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________________ +72% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________________ +73% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________________ +74% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________________ +75% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________________ +76% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________________ +77% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________ +77% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________________ +78% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________________ +79% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________________ +80% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@____________________ +81% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___________________ +82% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__________________ +83% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________ +83% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_________________ +84% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@________________ +85% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_______________ +86% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@______________ +87% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_____________ +88% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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____ +97% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@___ +98% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@__ +99% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@_ +100% +@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ + +~~~ \ No newline at end of file diff --git a/Salida.dat b/Salida.dat new file mode 100644 index 0000000..b77d4eb --- /dev/null +++ b/Salida.dat @@ -0,0 +1,5 @@ +Archivo a copiar (salto de linea) +A ver que copia y que no +asdakjdawd +ajdbawdj awldka wdwakn dw +a wd´naw daw d diff --git a/bin/jorpelu/com/MyCopy.class b/bin/jorpelu/com/MyCopy.class new file mode 100644 index 0000000..a71c222 Binary files /dev/null and b/bin/jorpelu/com/MyCopy.class differ diff --git a/bin/module-info.class b/bin/module-info.class new file mode 100644 index 0000000..b7cf3d3 Binary files /dev/null and b/bin/module-info.class differ diff --git a/src/jorpelu/com/MyCopy.java b/src/jorpelu/com/MyCopy.java new file mode 100644 index 0000000..a948686 --- /dev/null +++ b/src/jorpelu/com/MyCopy.java @@ -0,0 +1,74 @@ +package jorpelu.com; + +import java.io.*; +import java.io.File; +import java.util.ArrayList; +import java.util.Scanner; + + +public class MyCopy { + public static final String esc = "\u001b["; + + static Scanner sc = new Scanner(System.in); + + public static void main(String[] args) throws FileNotFoundException, IOException { + String ficheroString = sc.next(); + File fich = new File(".\\Salida.dat"); + File fich_a_copiar = new File(ficheroString); + if(fich_a_copiar.exists() == false) { + fich_a_copiar.createNewFile(); + } + String[] calculando = {"-", "\\", "|", "/"}; + + FileInputStream in = new FileInputStream(fich_a_copiar); + DataInputStream din = new DataInputStream(in); + FileOutputStream out = new FileOutputStream(fich); + DataOutputStream dout = new DataOutputStream(out); + int cal=0; + int i=0; + int c; + ArrayList bufferin = new ArrayList(); + + while((c = din.read() ) != -1 && bufferin.add(c)) { + System.out.println(calculando[cal]); + clearScreen(); + cal++; + if (cal >= 4) + cal = 0; + + try { + Thread.sleep(100); + } catch (InterruptedException e) { + // TODO Auto-generated catch block + e.printStackTrace(); + } + } + + for(int j = 0; j