Controle machine

This commit is contained in:
Simoes Lukas
2025-03-19 10:18:41 +01:00
parent 42cc204dea
commit 376861b608
86 changed files with 803 additions and 179 deletions

25
DEV2.1/TDs/Flux.java Normal file
View File

@@ -0,0 +1,25 @@
import java.awt.*;
import java.io.*;
public class Flux {
public static void main(String[] args) {
FileOutputStream sortie;
DataOutputStream flux;
float[] tab = {1.0f, 2.0f, 1.5f};
try {
sortie = new FileOutputStream("reels.bin");
flux = new DataOutputStream(sortie);
} catch (IOException e1) {
}
for (float valeur : tab) {
try {
flux.writeFloat(valeur);
} catch (IOException e2) {
}
}
try {
flux.close();
} catch (IOException e3) {
}
}
}