answersLogoWhite

0


Best Answer

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

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the different between array and File?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

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.


Is array is structure or not?

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


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.


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


What are the different between array and variables?

A variable is a reference to a single object (often a number, character, or string of characters). An array is a reference to a contiguous block of memory in which zero or more individual objects.


What is a sentence for array?

Alexia is looking for a different array at Kamaria's corner store.