Direct Acces File !
Posted: Wed Sep 21, 2011 9:17 am
				
				Hi,
Since I know PB, I wonder why there is no direct access to the file?
Such as this, that everyone knows in a lot of language:
I know this is possible by other means, 
but if it were implemented then it would still be easier and more would lock the record is read / written!
Thank you for reading!
			Since I know PB, I wonder why there is no direct access to the file?
Such as this, that everyone knows in a lot of language:
Code: Select all
Structure Etudiants
  Student.s[25]
  Annees.s
  Points.i
  Total.l
  Moyenne.f
  Commentaire.s[50]
End TYPE
Dim MaClasse.Etudiants(150)
; 
OpenFile(#Buffer, Nomfichier$ AS Random, Len(SizeOf(MaClasse)))
PUT #Buffer, Record, MaClasse(Record)
  
; --------------------------------------------------------
OpenFile(#Buffer, Nomfichier$ AS Random, Len(SizeOf(MaClasse)))
GET #Buffer, Record, MaClasse(Record)
but if it were implemented then it would still be easier and more would lock the record is read / written!
Thank you for reading!



 
 
 
 