diff --git a/include/InputFile.h b/include/InputFile.h
index 596e1a51fcfbe5422e407908ecc9e736b97240ab..170c06b8e5b6c530e7039f938930cfd65b65d0b2 100644
--- a/include/InputFile.h
+++ b/include/InputFile.h
@@ -51,6 +51,10 @@ public:
     
     virtual dword setpos(long offset) throw(PacketExceptionIO*);
 
+    virtual long getpos() {
+        return file->getpos();
+    }
+
 protected:
 
     File* file;