Nintenlord.Event_Assembler.Core.Code.PreprocessingInputStream.OpenBinaryFile C# (CSharp) Method

OpenBinaryFile() public method

public OpenBinaryFile ( string path ) : void
path string
return void
        public void OpenBinaryFile(string path)
        {
            if (unreadLines.Count > 0)
            {
                throw new InvalidOperationException();
            }
            byte[] data = File.ReadAllBytes(path);
            unreadLines.AddLast(Array.ConvertAll<byte, string>(data,
                        x => x.ToString()
                    ).ToElementWiseString(" ","CODE ","")
                );
        }