-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathARM.java
More file actions
33 lines (30 loc) · 950 Bytes
/
ARM.java
File metadata and controls
33 lines (30 loc) · 950 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// KFG-RWTxtNew/ARM.java
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import static java.lang.System.out; // <--just for fun
import static java.nio.charset.StandardCharsets.UTF_8;
public class ARM {
public static void main(String[] args) {
try (BufferedReader br =
Files.newBufferedReader(
Paths.get("ARM.java"),UTF_8);
BufferedWriter bw =
Files.newBufferedWriter(
Paths.get("ARM.java.BAK"),UTF_8)
)
{
String line;
while ((line = br.readLine()) != null) {
bw.write(line);
bw.newLine();
}
out.println("Done"); // <-- no System...
} catch (IOException ex) {
ex.printStackTrace();
System.exit(1);
}
}
}