ah sorry no
the values have to actually be separate not just appear so that wont work. I need it so that each individual line can be assigned to a String or int variable.
Type: Posts; User: aznprdgy
ah sorry no
the values have to actually be separate not just appear so that wont work. I need it so that each individual line can be assigned to a String or int variable.
This is the code i am currently working with. What it is supposed to do is read the file "scripts.dat" which is the following
SCRIPTS.DAT
Secret Assassins 0 1 0 0 1 0 0 1 1 40
The...
yes data file will contain the same line each time. But when i do
String name = myString[0];
System.out.println(name);
it print out multiple lines from...
import java.util.Scanner;
import java.io.*;
public class mess
{
public static void main(String[] args) throws Exception
{
String linRead,...
ok my problem is that the class file i made is reading from a file called "data.dat" which looks like the following
DATA.DAT
Maximizor,50,50
Robinator,50,50
Rocket Launcher,20,10
Sniper...