answersLogoWhite

0

If all objects are the same length, divide the size of the file by the size of an object. If the objects are variable length or different types of object, you must serialise the objects one at a time, counting them as you go. A better approach to counting is to maintain a count of stored objects in an user-defined header segment within the file, usually at the start of the file, or if dealing with mixed data types, store the length of each object before the data for each object, thus allowing you to quickly traverse the file without serialising.

User Avatar

Wiki User

11y ago

What else can I help you with?

Related Questions

Will you need calculus for an MBA?

It depends upon your program and the your specific area of focus. Certain branches of the business degree require a more rigorous mathematical approach. These may include, but are not limited to, economics, finance, decision support, or perhaps accounting. If you are able to focus on areas such as marketing or management, then the advanced math may not be required. If you have already selected a school or program, check with the program advisor to determine the level of math required or expected. Shop around to determine the program that best meets your needs, expectations, and goals.


Which term apples to this statement conducting a survey to determine the current status of a welfare program?

The term that applies to this statement is "needs assessment." Conducting a survey to determine the current status of a welfare program helps in understanding the needs of the target population and identifying areas for improvement or further support.


Why might a program that is known not to work continue to receive support?

There is no valid reason to support a program that does not work.


Are program names such as teacher support program capitalized?

yes


How to write a support letter for a youth program?

How do you write a support letter for a youth program that is on the brink of shutting down?'


Which function is supported by an application program?

which function is support by an application program


How a person centred approach enables individuals with dementia in their own care and support?

Describe how a person centred approach enables individual with dementia to be involved in their own care and support


Does child support increase when it's my year to claim our my child?

You need to review your own child support order to determine the terms of your obligations.You need to review your own child support order to determine the terms of your obligations.You need to review your own child support order to determine the terms of your obligations.You need to review your own child support order to determine the terms of your obligations.


How can employees support the safety program management functions of the army safety program?

Employees can support the Safety Program Management Function of the Army Safety Program by reviewing safety posters and other campaign materials.


What represents how employees can support the Program Management function of the Army Safety Program?

Employees can support the Safety Program Management Function of the Army Safety Program by reviewing safety posters and other campaign materials.


What directly represents how employees can support the program management function of the army's safety program?

Employees can support the Safety Program Management Function of the Army Safety Program by reviewing safety posters and other campaign materials.


Why object is called runtime entity?

An object is called a runtime entity because it exists during the execution of a program, as opposed to being merely a definition or blueprint in the code. When a program runs, instances of objects are created in memory, allowing them to hold state and behavior defined by their classes. This dynamic creation and manipulation of objects enable programming languages to support features like encapsulation, inheritance, and polymorphism, making them essential for object-oriented programming. Thus, objects are tangible representations of data and functionality that are actively utilized while the program is running.