Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- File file = new File(System.getProperty("user.home")+ "/dungeon.map");
- Scanner scanner = new Scanner(file).useDelimiter("\n");
- contains = new ArrayList<String>();
- while(scanner.hasNext())
- {
- contains.add(scanner.next());
- }
- for(int i = 0; i < contains.size(); i++)
- {
- String[] thisLine = new String[5];
- thisLine = contains.get(i).split(" ");
- String str1 = thisLine[0];
- String str2 = thisLine[1];
- String str3 = thisLine[2];
- String str4 = thisLine[3];
- String str5 = thisLine[4];
Add Comment
Please, Sign In to add comment