|  Quite a regular 
   
   
                        Joined:2008/11/3 12:06
 Last Login
                                :
 2023/8/2 21:18
 From South France Group:
                                 Registered Users
 | I have opened a file using :
 
 BPTR FileChannel;
 FileChannel = IDOS->Open( FileName, MODE_OLDFILE );
 
 and I read from this file using :
 
 IDOS->Read( FileChannel, MyMemoryPTR, BytesAmount );
 
 The problem I encounter is this one :
 
 - When I read small amount ( BytesAmount is small ie : 256, 144, etc ... ) I work perfectly, it read the file content and move in the file so if I do another IDOS->Read file, it will read what follow the latest read in the file
 
 - When I read large amount ( BytesAmount is bigger ie : 24000, 48000, etc ... ) if I do another read, it will read exactly the same area on the file a second time ... the pointer in the file remain at the same place.
 
 Is this normal ?
 Is there a solution to read step by step a file ( by some sort of hunks ) ?
 
 Regards,
 AmiDARK.
 
 
                                            
                
                
                    Edited by freddix on 2010/5/7 15:44:38
 |