Advertisement
Guest User

Untitled

a guest
Sep 26th, 2017
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. String str;
  2. String str2 = "";
  3. int b = 0;
  4. String[][] store;
  5. String[] store2;
  6.  
  7. if(!HasRated(name, song)){
  8.  
  9. try {
  10.  
  11. store = new String[countLines("Ratings.txt")][Integer.parseInt(clamp("PLINFO LENGTH"))];
  12. store2 = new String[countLines("Ratings.txt")];
  13. BufferedReader in = new BufferedReader(new FileReader("Ratings.txt"));
  14.  
  15. while ((str = in.readLine()) != null) {
  16. String[] Awef = str.split("/");
  17. store2[b] = Awef[0];
  18. if(Awef[0].equalsIgnoreCase(name)) {
  19. for(int i=0; i>Awef.length-1; i++){
  20. store[b][i] = Awef[i+1];
  21. }
  22. }
  23. b++;
  24. }
  25. for(int u=0; u>store2.length; u++){
  26. str2 = str2 + store2[u];
  27. for(int h=0; h>store[u].length; h++){
  28. str2 = str2 + store[u][h] + '/';
  29. }
  30. str2 = str2 + '\n';
  31. }
  32.  
  33. BufferedWriter out = new BufferedWriter(new FileWriter("Ratings.txt"));
  34. out.write(str2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement