Technically they're BOTH "data" files, it's just that one is organized in a way that it can be "executed" by the computer.
A project file is a file which contains information about your program. This could include source code, resources (images, sounds, etc.), and configuration files. A data file is a file which is actually used by your program to persist data between sessions.
A program is a type of data.A program in a computer is group of computer instructions or commands that, when loaded into memory, can be run by the computer processor to accomplish a task. Data is information that can be used by a computer program. It can be data in memory as part of the "workings" of a program, it can be stored in an area called a file or database from where it can be read and written.In modern computers, both data and program can exist in the same memory areas and on the same storage media. Programs are first made in a human readable text form and treated as data while it is being created and modified/edited. Another program (or programs) will convert this data into another form of data which can serve as a computer program.On most computer systems, program and data are stored as files. Usually a program is distinguished from other data by its name (its name will end with ".EXE") or by a special information designating the file as "executable". This is different on the IBM i platform (and its predecessors) where a program is maintained as a program object (*PGM) and data is stored as various types of data and file objects (*FILE).
A program is a type of data.A program in a computer is group of computer instructions or commands that, when loaded into memory, can be run by the computer processor to accomplish a task. Data is information that can be used by a computer program. It can be data in memory as part of the "workings" of a program, it can be stored in an area called a file or database from where it can be read and written.In modern computers, both data and program can exist in the same memory areas and on the same storage media. Programs are first made in a human readable text form and treated as data while it is being created and modified/edited. Another program (or programs) will convert this data into another form of data which can serve as a computer program.On most computer systems, program and data are stored as files. Usually a program is distinguished from other data by its name (its name will end with ".EXE") or by a special information designating the file as "executable". This is different on the IBM i platform (and its predecessors) where a program is maintained as a program object (*PGM) and data is stored as various types of data and file objects (*FILE).
The actual launching of a program and the opening of a file are performed by the system. A user or a program can only request the operating system to do this.When a program issues a request to open a data file, it also specifies the intended use of the file. Will it read, write or do something else to the file or the information in it; Will it be concerned if other programs access the file at the same time so that it will need exclusive access or can use for the file at the same time be shared. The system will then locate the file and determine If the requesting program and the person running it are authorized for the desired type of access to the data file. It will then setup a bunch of system tables to show that the file is available and to track its use and report back to the requesting program information making the file available.When a user or a running program asks the system to launch a program, the system has to insure that the program named exists, is capable of running as a program, is the requestor authorized to have the program launched, and if system resources are available to set up the program, bring it into memory, and run it. If all this true, the program is setup to run and is started.
-File structure is defined in the program code.
the program contains the which are coding like as our header file ,void main,library function etc.
well program is a set of instructions that are given to computer to perform perticular task as we want. And data is any information that is stored in computer hard disc. it can not make any control on computer of computer related process.
data file
file organization is of 3 types sequential,direct and indexed sequential where how data is accessed in eash file is decided where as file maintainence is
Your Private Data is recoverable using a File Recovery Program...such as Pixo_Rescue.
* Physical file (PF) contains the data and have only one record format. Logical file (LF) is a view of the physical file which does not contain any data may be based on one physical file or more then one physical file. Logical file can have more then one record format. Logical can be non join or join logical file. Performance becomes better if you use the logical file in the program.
Structural dependence-Access to a file depends on its structure i.e. adding customer date-of-birth field to customer file require the five steps described in slide 29. the reason for this is that the file structure is coded within the programData dependence-Changes in database structure affect program's ability to access data i.e. changing field from integer to decimal required changes in all the files. the reason for this is that the file data characteristics are coded within the program.