Hello, I am creating a basic Java program that will store music.
I have chosen to do this through a text file, to store and view my data.
My text file output currently looks like this:
1 TrackName1 Artist1 2 TrackName2 Artist2 3 TrackName3 Artist3
Now, I need to be able to differentiate between each musicID to display the Track & Artist name appropriately into a GUI.
I have been told that I need to get Java to understand that a new line means that that's the end of the record and a new one begins. Is such a thing possible?
I need to be able to scroll through the records in a GUI.
I understand there must be easier ways to do this but we've been instructed to use TextFile I/O.