Practice
Compete
Contribute
Learn
Log In
Sign Up
How to read a text file in Java
[CG]BOUGA
3,940 views
1
2
3
4
5
6
7
8
9
10
// { autofold
import java.io.BufferedReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.charset.Charset;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.List;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Run
7
2
Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
Suggested playgrounds
👨🎓 How to parse JSON in Java
By
[CG]BOUGA
9,627
0
How to test if a List contains a specific value in Java
By
[CG]BOUGA
3,862
5
Computing with Data
By
elgeish
60.5K
20
Java Interview Questions and Programming Examples
By
[CG]OlogN
4,199
11
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants
Keyboard Shortcuts:
?
Show / hide this help menu
×