Read a file character by character/UTF8: Difference between revisions
Read a file character by character/UTF8 (view source)
Revision as of 10:31, 2 February 2024
, 3 months ago→{{header|Wren}}: Changed to Wren S/H
m (→{{header|Wren}}: Changed to Wren S/H) |
|||
(2 intermediate revisions by one other user not shown) | |||
Line 397:
===Using Java 11===
<syntaxhighlight lang="java">▼
▲<syntaxhighlight>
▲import java.io.FileReader;
import java.io.IOException;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
public final class ReadFileByCharacter {
public static void main(String[] aArgs) {
try (
int value;
while ( ( value =
System.out.println((char) value);
}
Line 1,444:
=={{header|Wren}}==
<syntaxhighlight lang="
File.open("input.txt") { |file|
|