Skip to content

Commit 36e05b1

Browse files
committed
IO exercises
0 parents  commit 36e05b1

File tree

90 files changed

+3212
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+3212
-0
lines changed

Diff for: .idea/.gitignore

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/misc.xml

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: .idea/modules.xml

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: RepasoFicheros.iml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="NewModuleRootManager" inherit-compiler-output="true">
4+
<exclude-output />
5+
<content url="file://$MODULE_DIR$">
6+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
7+
</content>
8+
<orderEntry type="inheritedJdk" />
9+
<orderEntry type="sourceFolder" forTests="false" />
10+
</component>
11+
</module>

Diff for: build.xml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- You may freely edit this file. See commented blocks below for -->
3+
<!-- some examples of how to customize the build. -->
4+
<!-- (If you delete it and reopen the project it will be recreated.) -->
5+
<!-- By default, only the Clean and Build commands use this build script. -->
6+
<!-- Commands such as Run, Debug, and Test only use this build script if -->
7+
<!-- the Compile on Save feature is turned off for the project. -->
8+
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
9+
<!-- in the project's Project Properties dialog box.-->
10+
<project name="RepasoFicheros" default="default" basedir=".">
11+
<description>Builds, tests, and runs the project RepasoFicheros.</description>
12+
<import file="nbproject/build-impl.xml"/>
13+
<!--
14+
15+
There exist several targets which are by default empty and which can be
16+
used for execution of your tasks. These targets are usually executed
17+
before and after some main targets. They are:
18+
19+
-pre-init: called before initialization of project properties
20+
-post-init: called after initialization of project properties
21+
-pre-compile: called before javac compilation
22+
-post-compile: called after javac compilation
23+
-pre-compile-single: called before javac compilation of single file
24+
-post-compile-single: called after javac compilation of single file
25+
-pre-compile-test: called before javac compilation of JUnit tests
26+
-post-compile-test: called after javac compilation of JUnit tests
27+
-pre-compile-test-single: called before javac compilation of single JUnit test
28+
-post-compile-test-single: called after javac compilation of single JUunit test
29+
-pre-jar: called before JAR building
30+
-post-jar: called after JAR building
31+
-post-clean: called after cleaning build products
32+
33+
(Targets beginning with '-' are not intended to be called on their own.)
34+
35+
Example of inserting an obfuscator after compilation could look like this:
36+
37+
<target name="-post-compile">
38+
<obfuscate>
39+
<fileset dir="${build.classes.dir}"/>
40+
</obfuscate>
41+
</target>
42+
43+
For list of available properties check the imported
44+
nbproject/build-impl.xml file.
45+
46+
47+
Another way to customize the build is by overriding existing main targets.
48+
The targets of interest are:
49+
50+
-init-macrodef-javac: defines macro for javac compilation
51+
-init-macrodef-junit: defines macro for junit execution
52+
-init-macrodef-debug: defines macro for class debugging
53+
-init-macrodef-java: defines macro for class execution
54+
-do-jar: JAR building
55+
run: execution of project
56+
-javadoc-build: Javadoc generation
57+
test-report: JUnit report generation
58+
59+
An example of overriding the target for project execution could look like this:
60+
61+
<target name="run" depends="RepasoFicheros-impl.jar">
62+
<exec dir="bin" executable="launcher.exe">
63+
<arg file="${dist.jar}"/>
64+
</exec>
65+
</target>
66+
67+
Notice that the overridden target depends on the jar target and not only on
68+
the compile target as the regular run target does. Again, for a list of available
69+
properties which you can use, check the target you are overriding in the
70+
nbproject/build-impl.xml file.
71+
72+
-->
73+
</project>

Diff for: build/classes/FicherosSerializables/Alumno.class

1.27 KB
Binary file not shown.
628 Bytes
Binary file not shown.

Diff for: build/classes/FicherosSerializables/Principal.class

2.13 KB
Binary file not shown.
650 Bytes
Binary file not shown.
2.65 KB
Binary file not shown.
2.79 KB
Binary file not shown.
3.37 KB
Binary file not shown.
3.15 KB
Binary file not shown.

Diff for: build/classes/ejemplos/FicherosTexto.class

1.53 KB
Binary file not shown.

Diff for: build/classes/ejerciciosFicheros/Ejercicio1.class

1.46 KB
Binary file not shown.
1.54 KB
Binary file not shown.
2.81 KB
Binary file not shown.
2.14 KB
Binary file not shown.
2.57 KB
Binary file not shown.

Diff for: build/classes/ficherosBinarios/Binarios.class

2.38 KB
Binary file not shown.

Diff for: build/classes/ficherosBinarios/Ejercicio1.class

2.35 KB
Binary file not shown.

Diff for: build/classes/ficherosBinarios/Ejercicio2.class

2.79 KB
Binary file not shown.

Diff for: build/classes/ficherosBinarios/Ejercicio3.class

1.93 KB
Binary file not shown.

Diff for: clientes.dat

489 Bytes
Binary file not shown.

Diff for: coche.bin

34 Bytes
Binary file not shown.

Diff for: datos.obj

280 Bytes
Binary file not shown.

Diff for: empleados.txt

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Felipe_Garcia_Lopez 30 2 Casado
2+
Juan_Magan_Fernandez 55 0 Soltero
3+
Pepe_Garcia_Soler 61 4 Soltero
4+
Maria_Pastor_Ferro 45 8 Casado

Diff for: ficherotexto.txt

Whitespace-only changes.

Diff for: inventario.txt

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
101 Producto_1 100 25.75
2+
208 Producto_2 40 150.2
3+
230 Producto_3 160 30.0
4+
380 Producto_4 500 231.9
5+
440 Producto_5 420 760.5
6+
587 Producto_6 75 290.5
7+
764 Producto_7 547 54.25
8+
941 Producto_8 244 68.75
9+
955 Producto_9 99 152.85

Diff for: letras.txt

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
La letra: a, sale 2
2+
La letra: b, sale 2
3+
La letra: c, sale 2
4+
La letra: d, sale 1
5+
La letra: e, sale 0
6+
La letra: f, sale 0
7+
La letra: g, sale 0
8+
La letra: h, sale 0
9+
La letra: i, sale 0
10+
La letra: j, sale 0
11+
La letra: k, sale 0
12+
La letra: l, sale 0
13+
La letra: m, sale 0
14+
La letra: n, sale 0
15+
La letra: o, sale 0
16+
La letra: p, sale 0
17+
La letra: ñ, sale 0
18+
La letra: q, sale 0
19+
La letra: r, sale 0
20+
La letra: s, sale 0
21+
La letra: t, sale 0
22+
La letra: u, sale 0
23+
La letra: v, sale 0
24+
La letra: w, sale 0
25+
La letra: x, sale 0
26+
La letra: y, sale 0
27+
La letra: z, sale 0

Diff for: manifest.mf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Manifest-Version: 1.0
2+
X-COMMENT: Main-Class will be added automatically by build
3+

Diff for: movimientos.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
123 C 100
2+
230 V 30
3+
230 C 50
4+
450 D 10
5+
764 V 220
6+
900 V 100
7+
941 C 16
8+
941 D 50

0 commit comments

Comments
 (0)