Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.IO;
- using System.Text;
- using System.Windows;
- using System.Windows.Forms.Integration;
- using VoidwalkerEngine.Editor;
- namespace VoidwalkerEngine
- {
- /// <summary>
- /// Interaction logic for App.xaml
- /// </summary>
- public partial class App : Application
- {
- public static VoidwalkerEditor Editor;
- protected override void OnStartup(StartupEventArgs e)
- {
- string[] fileData = File.ReadAllLines("C:/Users/Krythic/Desktop/D2ItemSocketData.txt");
- StringBuilder builder = new StringBuilder();
- foreach(string line in fileData)
- {
- if(line != null && line.Length > 0)
- {
- string[] tableData = line.Split('_');
- if(tableData != null && tableData.Length == 4)
- {
- builder.AppendLine("[tr=bg2]");
- builder.AppendLine("[td=null,1]" + tableData[0] + "[/td]");
- builder.AppendLine("[td=null,1]" + tableData[1] + "[/td]");
- builder.AppendLine("[td=null,1]" + tableData[2] + "[/td]");
- builder.AppendLine("[td=null,1]" + tableData[3] + "[/td]");
- builder.AppendLine("[/tr]");
- }
- }
- }
- File.WriteAllText("C:/Users/Krythic/Desktop/Output.txt",builder.ToString());
- // v Game Engine Startup stuff because I'm too lazy to make another project v
- //base.OnStartup(e);
- //Editor = new VoidwalkerEditor();
- //ElementHost.EnableModelessKeyboardInterop(Editor);
- //Editor.Show();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement