示例#1
0
文件: io.cs 项目: stevewpalmer/jcom
 /// <summary>
 /// READ keyword
 /// Do an empty read, skipping the current record and setting the END flag as
 /// appropriate.
 /// </summary>
 /// <param name="readManager">A ReadManager instance to use</param>
 /// <param name="iostat">A reference variable that will be set to the I/O status</param>
 /// <returns>A zero value if the operation succeeds, or -1 if the operation fails</returns>
 public static int READ(ReadManager readManager, ref int iostat)
 {
     if (readManager == null) {
         throw new ArgumentNullException("readManager");
     }
     int charsRead = readManager.SkipRecord();
     if (charsRead < 0) {
         iostat = IOError.ReadError;
     }
     return charsRead;
 }