Search:

Type: Posts; User: aznprdgy

Search: Search took 0.33 seconds.

  1. Replies
    3
    Views
    778

    [SOLVED] Re: Reading from created file

    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.
  2. Replies
    3
    Views
    778

    [SOLVED] Program to read from created file

    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...
  3. Replies
    11
    Views
    1,184

    [SOLVED] Re: reading from a file

    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...
  4. Replies
    11
    Views
    1,184

    [SOLVED] Re: reading from a file

    import java.util.Scanner;
    import java.io.*;


    public class mess
    {
    public static void main(String[] args) throws Exception
    {
    String linRead,...
  5. Replies
    11
    Views
    1,184

    [SOLVED] Problem in reading a file from java class

    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...
Results 1 to 5 of 5