answersLogoWhite

0

An array is a systematic arrangement of objects, usually in rows and columns

A computer file is a block of arbitrary information, or resource for storing information, which is available to a computer program and is usually based on some kind of durable storage

User Avatar

Wiki User

14y ago

What else can I help you with?

Related Questions

How do you save an array as a file with C?

To save an array as a file in C, you can use the fopen function to create or open a file, followed by fwrite to write the array data to the file. For example: FILE *file = fopen("array.dat", "wb"); fwrite(array, sizeof(int), array_size, file); fclose(file); Here, replace int with the appropriate data type and array_size with the number of elements in the array. Ensure to handle errors for file operations appropriately in a complete program.


Under what circumstances is a file more useful than an array?

For example: if you want to store data on a disk, it will be a file, not an array.


Php array to xml file?

If you mean taking an array and making an xml file out of it then you would need to dump the array information into the xml file. $fp = fopen(filename, "a"); $str = <author>$array['author']</author> fwrite($fp,$str); fclose($fp); that way it will add the contents to the end of thhe file


What is the best way to write an array to a file in PHP?

The serialize() function is used to create a storable representation of a variable in PHP.To store an array to a file, you first use the serialize() function to change an array into a string. Save the string in a file using file I/O, so fwrite() or a similar function. When reading it use unserialize() to get the original array again.


What is an Array and to use Array in Action script?

Array is a ranged variable, using it is required by many actions.. like where you going to processing data from a file where there is n lines in a file and you want to get one line of it.. ex: if variable $line is an array of lines in a text file: $line[1] is second line of the file... just keep it in mind arrays starts from zero :) it means line 1 of the file will be accessed with $line[0];


Difference between Internal hashing n external hashing?

Internal hashing mainly used for internal file, it is particularly an array of records. External hashing used for file disk


What is the difference between an array and structure?

An array is a collection of related data elements of same type.Structure can have elements of different types.An array is a derived data type.A structure is a programmer-defined data type.A struct can contain multiple data types, whereas an array can not.


What is difference between structure and array?

An array is a made up of elements of the same type e.g. strings or integers. A structure on the other hand can be made up of elements of different types.


Is array is structure or not?

Array is not a struct. Array only has one datatype, struct has arbitrary different datatypes.


How is array different in C?

It isn't different.


How can you search an array element in a file?

Logic to search element in array Input size and elements in array from user. ... Input number to search from user in some variable say toSearch . Define a flag variable as found = 0 . ... Run loop from 0 to size . ... Inside loop check if current array element is equal to searched number or not. To learn more about data science please visit- Learnbay.co


How do you create a script to upload a file in PHP?

Hope your requirement is to upload a file to server . follow this code. $files=array(); $file=handleUpload($_FILES); function handleUpload($upload_file){ if(!$upload_file) return; $files=array(); $file->file_orig_name = $upload_file['name']; $file->file_size = $upload_file['size']; $path_parts = pathinfo($file->file_orig_name); $file->file_extension = strtolower($path_parts['extension']); $file->file_mime_type = $upload_file['type']; $file->file_tmp_name = $upload_file['tmp_name']; return $files; }