Controle machine
This commit is contained in:
BIN
DEV2.1/TDs/Flux.class
Normal file
BIN
DEV2.1/TDs/Flux.class
Normal file
Binary file not shown.
25
DEV2.1/TDs/Flux.java
Normal file
25
DEV2.1/TDs/Flux.java
Normal 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) {
|
||||
}
|
||||
}
|
||||
}
|
BIN
DEV2.1/TDs/reels.bin
Normal file
BIN
DEV2.1/TDs/reels.bin
Normal file
Binary file not shown.
Reference in New Issue
Block a user