nerdexam
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)
  • A
    6% (2)
  • B
    9% (3)
  • C
    83% (29)
  • E
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice