For my server to work (to be able to execute certain processes), I need to be able to read this certain file. This file contains 5 different variables separated by tabs. How would I go about grabbing each of those variables? I know how to grab the whole line using a Scanner, but it won't print out the variables separately.
Here's an example:
NPC = 5\t6t7\t8
I want to be able to grab 5, 6, 7, and 8 and print it out separately.
Have you read the Scanner API? It has methods for extracting the next integer or next word from a string.