Advertisement
Athanatos

extractplatforms

Feb 23rd, 2017
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. clc;
  2. clear 'all';
  3. close;
  4. fclose ('all');
  5.  
  6. fp=fopen('D:\Torrents\3DMGAME-GamersGoMakers.v1.16.Multi.7._ed-3DM\GamersGoMakers\data\1\platforms.txt');
  7.  
  8. i=0;
  9. j=0;
  10.  
  11. while feof(fp) == 0
  12. i=i+1;
  13. j=0;
  14.  
  15. gg=1;
  16. gg1=1;
  17.  
  18. line=fgetl(fp);
  19.  
  20. lline=length(line);
  21.  
  22. while gg <=lline
  23. if line(gg)==';'
  24. liw=line(gg1:gg-1)
  25. j=j+1;
  26. plat{i,j}=liw
  27. gg1=gg+1;
  28. end
  29. gg=gg+1;
  30. end
  31. end
  32.  
  33. xlswrite ('extractplatforms.xls', plat)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement