Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.IO;
- using System.Linq;
- using System.Text;
- namespace OMG
- {
- public static class Reader
- {
- public static List<string> FILEDATA;
- public static void _READ()
- {
- FileStream fs = new FileStream(@"CR.NX", FileMode.Open);
- FILEDATA = new List<string>();
- int hexIn;
- string FILE = "";
- for (int i = 0; (hexIn = fs.ReadByte()) != -1; i++)
- FILE += string.Format("{0:X2}", hexIn);
- for (int i = 0; i < FILE.Length; i=i+8)
- FILEDATA.Add(FILE.Substring(i, 8));// de 8 en 8
- if (FILEDATA[0] == "4E583230") //ES UN NX20
- StepData.dType = "NX20";
- else
- return;//NO PUEDO CONVERTIR OTRA COSA XOXOXO
- StepData._CLEAN();
- StepData._PARSE();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement