National_Instruments
200-500 · Question #160
What is the ideal method of copying data between two opened files?
The correct answer is C. stream_copy_to_stream($source_file, $destination_file). See the full explanation below for the reasoning.
Question
What is the ideal method of copying data between two opened files?
Options
- Acopy($source_file, $destination_file);
- Bcopy(destination_file, $source_file);
- Cstream_copy_to_stream($source_file, $destination_file);
- Dstream_copy_to_stream($destination_file, $source_file);
- Estream_bucket_prepend($source_file, $destination_file);
How the community answered
(35 responses)- A6% (2)
- B9% (3)
- C83% (29)
- E3% (1)
Community Discussion
No community discussion yet for this question.