CreateFile() публичный Метод

Creates a file on the xbox.
public CreateFile ( string fileName, FileMode createDisposition ) : void
fileName string File to create.
createDisposition FileMode Creation options.
Результат void
Пример #1
0
        public XboxFileStream(Xbox client, string fileName)
        {
            this.Xbox = client;
            if (client == null)
                throw new NoConnectionException("Must connect first.");

            this.FileName = fileName;
            position = 0;
            client.CreateFile(fileName, FileMode.Create);   // creates the file by default
        }
Пример #2
0
        /// <summary>
        /// Creates a new file stream using a client connection to a debug xbox.
        /// </summary>
        /// <param name="xbox">Connection to use.</param>
        /// <param name="fileName">Name of the file to expose stream to.</param>
        /// <param name="mode">File create disposition.</param>
        public XboxFileStream(Xbox xbox, string fileName, FileMode mode)
        {
            this.Xbox = xbox;
            if (xbox == null || !xbox.Connected)
                throw new NoConnectionException("Must connect first.");

            FileName = fileName;
            position = 0;
            xbox.CreateFile(fileName, mode);
        }
Пример #3
0
        public XboxFileStream(Xbox client, string fileName)
        {
            this.Xbox = client;
            if (client == null)
            {
                throw new NoConnectionException("Must connect first.");
            }

            this.FileName = fileName;
            position      = 0;
            client.CreateFile(fileName, FileMode.Create);   // creates the file by default
        }
Пример #4
0
        /// <summary>
        /// Creates a new file stream using a client connection to a debug xbox.
        /// </summary>
        /// <param name="xbox">Connection to use.</param>
        /// <param name="fileName">Name of the file to expose stream to.</param>
        /// <param name="mode">File create disposition.</param>
        public XboxFileStream(Xbox xbox, string fileName, FileMode mode)
        {
            this.Xbox = xbox;
            if (xbox == null || !xbox.Connected)
            {
                throw new NoConnectionException("Must connect first.");
            }

            FileName = fileName;
            position = 0;
            xbox.CreateFile(fileName, mode);
        }
Пример #5
0
            /// <summary>
            /// Creates a new file stream using a client connection to a debug xbox.
            /// </summary>
            /// <param name="client">Connection to use.</param>
            /// <param name="fileName">Name of the file to expose stream to.</param>
            /// <param name="mode">File create disposition.</param>
            public FileStream(Xbox client, string fileName, FileMode mode)
            {
                this.Client = client;
                if (client == null || !client.Connected)
                    throw new NoConnectionException("Must connect first.");

                FileName = fileName;
                position = 0;
                client.CreateFile(fileName, mode);
            }