0 Members and 5 Guests are viewing this topic.
would you like the back end from tfe? i already kind of have it almost in a library form (since i was planning on making it a library eventually anyway)
ProgramFile pf = new ProgramFile();pf.openFile("Cool File.8xp");pf.Tokens //String-ization of all the tokenspf.Name //Program name//To get a short[] of all the bytes of the program:pf.ts.stringToData(pf.Tokens);//To load a custom token set (see the file syntax in the main tfe thread)short[] temp = pf.ts.stringToData(pf.Tokens);pf.ts.changeTokens("Custom Tokens.tokens");pf.Tokens = pf.ts.dataToString(temp);//Or easierpf = new ProgramFile();pf.ts.changeTokens("Custom Tokens.tokens");pf.openFile("Cool File.8xp");
ProgramFile pf = new ProgramFile();pf.Tokens = "YAY! TOKENS!";pf.Name = "TOKENPRG";pf.saveFile("Cool File.8xp");