var i:Number = 0; while(1) { // Check here for skip if(skip) { continue } // // Process data here // if(file.EOF) { break; } i++ }