Jump to content

file organisation


joy1

Recommended Posts

In fixed length records one should use padding for empty or non-filled spaces.

 

For example :-

 

18|Alice|21|F|Student*******************$

19|John|26|M|Professor*****************$

 

In variable length records padding is not required.

 

Alice|21|F|Student#

John|26|M|Professor#

 

Variable records are used when you're not aware of the size of the individual data fields or variables or if you want dynamic allocation of memory at run time so that it allocates as much memory as it is required avoiding unnecessary allocation of memory resources and for fixed length records it is used when you very well know the size of the individual fields or variables.

Edited by immortal
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.