How to read values from custom txt in Java
I want to read all values from the txt file in Java and assign it to Student object before adding it to List<Student> but I have custom txt file
Here is the custom file shown below
Student1
Name, Surname, Age
Student2
Name, Surname, Age
....
How can I do that?
6 Replies
⌛
This post has been reserved for your question.
Hey @direct_x_34! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when you're finished. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.
Actually my txt like this
I tried to implement some coding stuff but I couldn't handle with the process.
How can I do that?
Here is the code snippet shown below.
Unknown User•3y ago
Message Not Public
Sign In & Join Server To View
💤
Post marked as dormant
This post has been inactive for over 300 minutes, thus, it has been archived. If your question was not answered yet, feel free to re-open this post or create a new one.