Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Performing File Operations

+19
sp.alfiler
rapal
madera16
Ferre
Asdfghjkl
Vann Lewis
Bermon O. Ferreras Jr
Emie Ligutan
ellariana
Rfrancis03
mikolunzxc
:BOAR'SWrath:
iramae
Jericho
Lawrence
airojames
Luwiezzz
James Navarro
Admin Rash
23 posters
Go down
avatar
Rfrancis03
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 9:58 am
mikolunzxc wrote:pwede po bang magkaron nang maraming childfile ?
pwedeng pwede hanggang kelan mo gusto Very Happy
avatar
Bermon O. Ferreras Jr
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 9:58 am
airojames wrote:Ano po midterm exam namin? Written or actual? Haha

Sent from Topic'it App
syempre parehas yun. gagawin written at actual . para malaman kung naiintindihan mo ba yung topic at para malaman kung kaya mo na yun
avatar
Emie Ligutan
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 9:58 am
Emie Ligutan wrote:
Jericho wrote:Ang parent file ba pwede mag produce ng parent file den?
I think d magproproduce ng parent file ang parent file. magpoproduce sya ng child file pero hnd ng parent file. Parang in real life lng hahahahah
Yung child file mo magiging parent file . tas yung parent dati magiging grandparent file
avatar
mikolunzxc
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 9:58 am
Bermon O. Ferreras Jr wrote:
airojames wrote:Mam dba gumawa ng yung database ng new file so d pa rin mawawala yung unang file eh paano po kung inulit yun 100times nandoon pa rin po ba yung unang file?

Sent from Topic'it App
hindi na mawawala  yun andon pa din yun nag uupdated nalang yun. so lumalaki lang yung file nun.

sabi ni sir di na mabubura unless ikaw yung mag bubura
avatar
:BOAR'SWrath:
Guru
Posts : 11
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 9:59 am
Admin Rash wrote:
Our business is about technology, yes. But it's also about operations and customer relationships. ㅡ Michael Dell




To use data files in your programs, you need to understand several file operations:



  • Declaring a file identifier
  • Opening a file
  • Reading from a file and processing the data
  • Writing to a file
  • Closing a file



--

Declaring a File Identifier
Most languages support several types of files, but one way of categorizing files is by whether
they can be used for input or for output. Just as variables and constants have data types such as
num and string, each file has a data type that is defined in the language you are using.

InputFile employeeData
OutputFile updatedData


--

Opening a File
Opening a file locates it on a storage device and associates a variable name within your program with the file.

--

Reading Data from a File and Processing it
Before you can use stored data within a program, you must load the data into computer memory. You never use the data values that are stored on a storage device directly. Instead, you use a copy that is transferred into memory. When you copy data from a file on a storage device into RAM, you read from the file.

input name from employeeData
input address from employeeData
input payRate from employeeData


Most languages also allow you to write a single statement in
the following format:

input name, address, payRate from employeeData


Performing File Operations - Page 3 310

Performing File Operations - Page 3 410


A computer program can read records from a file sequentially or randomly.

Sequential files, reads all the records in the file from beginning to end, processing
them one at a time.
Sorting is the process of placing records in
order by the value in a specific field or fields.

Examples of sorted, sequential files include the following:



  • A file of employees whose data is stored in order by ID number
  • A file of parts for a manufacturing company whose data is stored in order by part number
  • A file of customers for a business whose data is stored in alphabetical order by name



--

Writing Data to a File
When you store data in a computer file on a persistent storage device, you write to the file . This means you copy data from RAM to the file. When you write data to a file, you write the contents of the fields using a statement such as the following:

output name, address, payRate to employeeData

--

Closing a File
When you finish using a file, the program should close the file —a closed file is no longer
available to your application. Failing to close an input file (a file from which you are reading
data) usually does not present serious consequences; the data still exists in the file.

--

A Program that Performs File Operations

The flowchart contains a program that opens two files—an input file and an output file. The program reads each employee record from the input file, alters the employee’s pay rate, and writes the updated record to an output file. After all the records have been processed, the program closes the files.


Performing File Operations - Page 3 Screen10

Performing File Operations - Page 3 810


A backup file is a copy that is kept in case values need to be restored to their original state. The backup copy is called a parent file and the newly revised copy is a child file .

SALAMAT PO MA'AM BLESSING PO KAYO
avatar
mikolunzxc
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:00 am
Bermon O. Ferreras Jr wrote:
airojames wrote:Ano po midterm exam namin? Written or actual? Haha

Sent from Topic'it App
syempre parehas yun. gagawin written at actual . para malaman kung naiintindihan mo ba yung topic at para malaman kung kaya mo na yun
.

Always ready lang Very Happy
avatar
mikolunzxc
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:01 am
Jericho wrote:Ang parent file ba pwede mag produce ng parent file den?

i think hinde
avatar
Bermon O. Ferreras Jr
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:01 am
Emie Ligutan wrote:
Emie Ligutan wrote:
Jericho wrote:Ang parent file ba pwede mag produce ng parent file den?
I think d magproproduce ng parent file ang parent file. magpoproduce sya ng child file pero hnd ng parent file. Parang in real life lng hahahahah
Yung child file mo magiging parent file . tas yung parent dati magiging grandparent file

hindi. ikaw namismo ang mag poproduce nun parang ikaw si God pero hindi ikaw hehehe.. ang kaya nya lang iproduce is yung child ok
avatar
Rfrancis03
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:01 am
:BOAR'SWrath: wrote:Ma'am nacurious lang po ako kung nadelete ung data base pede pa po ba siyang marecover  gamit ng ibang application?
pwede basta meron kang backup hahaha
avatar
Vann Lewis
Newbie
Posts : 3
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:02 am
airojames wrote:Comma delimiter lang po talaga pwede gamitin? Bawal na po yung ibang character?

Sent from Topic'it App
Depende siguro sa Programming Language Pre. Iba-iba naman siguro ang mga Delimiter nila.
avatar
Bermon O. Ferreras Jr
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:02 am
tanung lang maam. kaya po bang baguhin yung laman ng data base ?
avatar
mikolunzxc
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:03 am
Jericho wrote:
mikolunzxc wrote:pwede po bang magkaron nang maraming childfile ?
yes pwede dumami yung child file.

ahhh so kahit ilan pala Very Happy salamatsu Very Happy
Jericho
Jericho
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:03 am
Vann Lewis wrote:
airojames wrote:Comma delimiter lang po talaga pwede gamitin? Bawal na po yung ibang character?

Sent from Topic'it App
Depende siguro sa Programming Language Pre. Iba-iba naman siguro ang mga Delimiter nila.

Maging pamilyar na kayo sa phyton. Very Happy Very Happy
avatar
Bermon O. Ferreras Jr
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:03 am
maam kapag po ba nabago yung mag kucorrupt po ba yung data ?
avatar
Vann Lewis
Newbie
Posts : 3
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:05 am
:BOAR'SWrath: wrote:Ma'am nacurious lang po ako kung nadelete ung data base pede pa po ba siyang marecover  gamit ng ibang application?
Recycle Bin ang pwedeng pagkuhanan ng File na na-delete. Haha!
avatar
Bermon O. Ferreras Jr
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:05 am
mikolunzxc wrote:
Jericho wrote:
mikolunzxc wrote:pwede po bang magkaron nang maraming childfile ?
yes pwede dumami yung child file.

ahhh so kahit ilan pala Very Happy salamatsu Very Happy

oo naman pwede pero hihirap parang babagal ganun. kasi parang real life lang yan kapag madami kang anak hihirap lang lalo. or babagal lang yung pag usbong nyo
Asdfghjkl
Asdfghjkl
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:05 am
Para san po yung control break? For input (grouping of inputs) or for searching of data?
avatar
Bermon O. Ferreras Jr
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:06 am
Maam what if nakapag produce ng napakaraming child file yung parents files babagal po ba yun ?
Admin Rash
Admin Rash
Admin
Posts : 63
Join date : 2018-07-25
Age : 24
https://rjdc.forumotion.com

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:07 am
Bermon O. Ferreras Jr wrote:Maam what if nakapag produce ng napakaraming child file yung parents files babagal po ba yun ?
No, they're independent to each other.
Admin Rash
Admin Rash
Admin
Posts : 63
Join date : 2018-07-25
Age : 24
https://rjdc.forumotion.com

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:08 am
Bermon O. Ferreras Jr wrote:tanung lang maam. kaya po bang baguhin yung laman ng data base ?
Yes, pwede, more specifically your updating the records to your database.
avatar
Bermon O. Ferreras Jr
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:09 am
James Navarro wrote:Thank you po maam for this post, very well explained po Smile

Sent from Topic'it App

Agree po ako maam. Naintindihan ko den po ng maayos pero may mga tanong pa den po ako.
Admin Rash
Admin Rash
Admin
Posts : 63
Join date : 2018-07-25
Age : 24
https://rjdc.forumotion.com

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:10 am
Vann Lewis wrote:
:BOAR'SWrath: wrote:Ma'am nacurious lang po ako kung nadelete ung data base pede pa po ba siyang marecover  gamit ng ibang application?
Recycle Bin ang pwedeng pagkuhanan ng File na na-delete. Haha!
Pwede marecover as long as may back-up file.
Admin Rash
Admin Rash
Admin
Posts : 63
Join date : 2018-07-25
Age : 24
https://rjdc.forumotion.com

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:11 am
Bermon O. Ferreras Jr wrote:
James Navarro wrote:Thank you po maam for this post, very well explained po Smile

Sent from Topic'it App

Agree po ako maam. Naintindihan ko den po ng maayos pero may mga tanong pa den po ako.
Feel free to ask questions. Smile
avatar
Bermon O. Ferreras Jr
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:12 am
Luwiezzz wrote:Thank you Ms. Rashlyn for this, it really helped me a lot understanding file operations

thankyou maam for this lesson . nakatulong to sakin para mas madagdagan yung alam ko.
avatar
Rfrancis03
Guru
Posts : 10
Join date : 2018-08-16

Performing File Operations - Page 3 Empty Re: Performing File Operations

Thu Aug 16, 2018 10:12 am
:BOAR'SWrath: wrote:Ma'am nacurious lang po ako kung nadelete ung data base pede pa po ba siyang marecover  gamit ng ibang application?
pwede basta meron kang backup file
Sponsored content

Performing File Operations - Page 3 Empty Re: Performing File Operations

Back to top
Permissions in this forum:
You cannot reply to topics in this forum