i have file(ps),dont know how many records are there. move
half of the records to 2 files. how can we do



i have file(ps),dont know how many records are there. move half of the records to 2 files. how can ..

Answer / a

Question confirmation: Move half-half records to 2 diff. files.

Precondition: You must be knowing how to read record.
Solution:
1. Read file from top.
2. Move each record in alternative file.

Is This Answer Correct ?    14 Yes 5 No

Post New Answer

More Design Patterns Interview Questions

When singleton pattern is used?

0 Answers  


How to add CSS styles Styles to Elements with Particular Attributes?

1 Answers  


what is the difference between the Adapter Pattern and Proxy Patterns?its seems both are almost similar?

1 Answers   RBS,


Why have we used synchronized here?

0 Answers  


Design Facade pattern - What is its application in projects ?

1 Answers   HP,






3. Discuss the concept of system transition strategy

0 Answers  


Shall we use abstract classes or interfaces in policy / strategy design pattern?

0 Answers  


If there is a Model class,View class,Controller class then How these are internally related? Which layer objects instantiated in which layer? How they communicates?

4 Answers   Honeywell,


what is a Design Pattern?

5 Answers   TCS,


Why singleton beans are not thread safe?

0 Answers  


What is meant by design pattern?

0 Answers  


What is the difference between builder and composite?

0 Answers  


Categories