Hi everyone! In these slides we'll learn that what is memory, Chip memory and Magnetic memory (e.g. hard disks and chip memory on motherboard). Hope these would be helpful!
A brief introduction to Process synchronization in Operating Systems with classical examples and solutions using semaphores. A good starting tutorial for beginners.
Hi everyone! In these slides we'll learn that what is memory, Chip memory and Magnetic memory (e.g. hard disks and chip memory on motherboard). Hope these would be helpful!
A brief introduction to Process synchronization in Operating Systems with classical examples and solutions using semaphores. A good starting tutorial for beginners.
A web application is a software program that runs in an Internet browser, on or through a web page. Similar to a software program that runs on a computer desktop or desktop application, a web application allows for user interaction and can be designed for a variety of uses.
This presentation is about U-Boot: the most popular open source, primary boot loader used in embedded devices, as well as it's mechanisms and features.
The respective talk was held by Sam Protsenko (Software Engineer, Consultant, GlobalLogic) at GlobalLogic Mykolaiv Embedded TechTalk #1 on May 25, 2018.
A web application is a software program that runs in an Internet browser, on or through a web page. Similar to a software program that runs on a computer desktop or desktop application, a web application allows for user interaction and can be designed for a variety of uses.
This presentation is about U-Boot: the most popular open source, primary boot loader used in embedded devices, as well as it's mechanisms and features.
The respective talk was held by Sam Protsenko (Software Engineer, Consultant, GlobalLogic) at GlobalLogic Mykolaiv Embedded TechTalk #1 on May 25, 2018.
Computer Introduction-Lecture02 for applied scince college students, Seiyun University , yemen 2023-2024 Academic year. لطلاب كلية العلوم التطبيقية بجامعة سيئون
مقدمة في علوم الحاسوب المحاضرة الثانية
Introduction to computer memory
Characteristics of computer storage devices
Representation of primary and secondary devices
Difference between primary and secondary memory
Types of RAM and ROM
List of computer storage devices
Advantages and disadvantage
Introduction, Memory Hierarchy, Random Access Memory (RAM), Types of RAM, Read Only Memory (ROM), Types of ROM. Introduction, Classification of Secondary Storage Devices, Magnetic Tape, Magnetic Disk, Optical Disk, Magneto Optical disk.
Difference between linear and non-linear data structure, Tree Data Structure - Introduction, Terminology, Tree Representation, Binary Tree, Properties of Binary Tree
Depth First Search Traversal of Binary Tree - Recursive and Non-recursive In-order, preorder, post-order traversal, Breath First Traversal of Binary Tree
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers introduction to paging in 80386, Address Translation (Linear to physical), Page Level Protection,
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers Introduction to multitasking, Support Registers and Data Structures, Task State Segment (TSS), TSS Descriptor, Task Register, Task Switching via TSS and Task Gate, Task Gate Descriptor,
PAI Unit 2 Segmentation in 80386 microprocessorKanchanPatil34
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers types of address spaces : Logical, linear, Physical, Address Translation in 80386, Segment Descriptor Format, Types of Segment Descriptors,
PAI Unit 2 Protection in 80386 segmentationKanchanPatil34
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers protection mechanism in 80386 microprocessor through conforming code segment and call gate
SE PAI Unit 2_Data Structures in 80386 segmentationKanchanPatil34
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers Descriptor Tables in 80386 as Global Descriptor Table, Local Descriptor Table, Types of Interrupts/Exception : Traps, faults, Aborts, Real mode Interrupt Structure (IVT), Protected mode interrupt Structure (IDT)
SE PAI Unit 5_Timer Programming in 8051 microcontroller_Part 1KanchanPatil34
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers Introduction to Timers, Special Function Registers as Timer 1 Register, Timer 0 Register, TMOD register, TCON register, Operating modes of Timer
SE PAI Unit 5_Timer Programming in 8051 microcontroller_Part 2KanchanPatil34
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers Mode 1 and Mode 2 programming of timers, Counters and Counter Programming
SE PAI Unit 5_Serial Port Programming in 8051 micro controller_Part 3KanchanPatil34
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers importance of RI Flag, Importance of TI flag, examples on Serial Port programming
SE PAI Unit 5_Serial Port Programming in 8051 microcontroller_Part 2KanchanPatil34
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers special function registers used for serial communication in 8051, Operating modes of serial communication, doubling baud rate in 8051
SE PAI Unit 5_Serial Port Programming in 8051 microcontroller_Part 1KanchanPatil34
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers the basics of serial communication, Data framing and Baud Rate in 8051 microcontroller.
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers ports of 8051 microcontroller, Description and How to configure those ports with examples
Unit 5_Interrupt programming in 8051 micro controller - part 2KanchanPatil34
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers Special Function Registers of Interrupt programming of 8051 (IE, IP registers), example on interrupt programming
2015 course SPPU SEIT syllabus of subject Processor Architecture and Interfacing (PAI) This covers Introduction to Interrupts in 8051, Interrupt Handler, Types of Interrupts etc.
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsVictor Morales
K8sGPT is a tool that analyzes and diagnoses Kubernetes clusters. This presentation was used to share the requirements and dependencies to deploy K8sGPT in a local environment.
Final project report on grocery store management system..pdfKamal Acharya
In today’s fast-changing business environment, it’s extremely important to be able to respond to client needs in the most effective and timely manner. If your customers wish to see your business online and have instant access to your products or services.
Online Grocery Store is an e-commerce website, which retails various grocery products. This project allows viewing various products available enables registered users to purchase desired products instantly using Paytm, UPI payment processor (Instant Pay) and also can place order by using Cash on Delivery (Pay Later) option. This project provides an easy access to Administrators and Managers to view orders placed using Pay Later and Instant Pay options.
In order to develop an e-commerce website, a number of Technologies must be studied and understood. These include multi-tiered architecture, server and client-side scripting techniques, implementation technologies, programming language (such as PHP, HTML, CSS, JavaScript) and MySQL relational databases. This is a project with the objective to develop a basic website where a consumer is provided with a shopping cart website and also to know about the technologies used to develop such a website.
This document will discuss each of the underlying technologies to create and implement an e- commerce website.
Online aptitude test management system project report.pdfKamal Acharya
The purpose of on-line aptitude test system is to take online test in an efficient manner and no time wasting for checking the paper. The main objective of on-line aptitude test system is to efficiently evaluate the candidate thoroughly through a fully automated system that not only saves lot of time but also gives fast results. For students they give papers according to their convenience and time and there is no need of using extra thing like paper, pen etc. This can be used in educational institutions as well as in corporate world. Can be used anywhere any time as it is a web based application (user Location doesn’t matter). No restriction that examiner has to be present when the candidate takes the test.
Every time when lecturers/professors need to conduct examinations they have to sit down think about the questions and then create a whole new set of questions for each and every exam. In some cases the professor may want to give an open book online exam that is the student can take the exam any time anywhere, but the student might have to answer the questions in a limited time period. The professor may want to change the sequence of questions for every student. The problem that a student has is whenever a date for the exam is declared the student has to take it and there is no way he can take it at some other time. This project will create an interface for the examiner to create and store questions in a repository. It will also create an interface for the student to take examinations at his convenience and the questions and/or exams may be timed. Thereby creating an application which can be used by examiners and examinee’s simultaneously.
Examination System is very useful for Teachers/Professors. As in the teaching profession, you are responsible for writing question papers. In the conventional method, you write the question paper on paper, keep question papers separate from answers and all this information you have to keep in a locker to avoid unauthorized access. Using the Examination System you can create a question paper and everything will be written to a single exam file in encrypted format. You can set the General and Administrator password to avoid unauthorized access to your question paper. Every time you start the examination, the program shuffles all the questions and selects them randomly from the database, which reduces the chances of memorizing the questions.
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)MdTanvirMahtab2
This presentation is about the working procedure of Shahjalal Fertilizer Company Limited (SFCL). A Govt. owned Company of Bangladesh Chemical Industries Corporation under Ministry of Industries.
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Dr.Costas Sachpazis
Terzaghi's soil bearing capacity theory, developed by Karl Terzaghi, is a fundamental principle in geotechnical engineering used to determine the bearing capacity of shallow foundations. This theory provides a method to calculate the ultimate bearing capacity of soil, which is the maximum load per unit area that the soil can support without undergoing shear failure. The Calculation HTML Code included.
Understanding Inductive Bias in Machine LearningSUTEJAS
This presentation explores the concept of inductive bias in machine learning. It explains how algorithms come with built-in assumptions and preferences that guide the learning process. You'll learn about the different types of inductive bias and how they can impact the performance and generalizability of machine learning models.
The presentation also covers the positive and negative aspects of inductive bias, along with strategies for mitigating potential drawbacks. We'll explore examples of how bias manifests in algorithms like neural networks and decision trees.
By understanding inductive bias, you can gain valuable insights into how machine learning models work and make informed decisions when building and deploying them.
We have compiled the most important slides from each speaker's presentation. This year’s compilation, available for free, captures the key insights and contributions shared during the DfMAy 2024 conference.
Using recycled concrete aggregates (RCA) for pavements is crucial to achieving sustainability. Implementing RCA for new pavement can minimize carbon footprint, conserve natural resources, reduce harmful emissions, and lower life cycle costs. Compared to natural aggregate (NA), RCA pavement has fewer comprehensive studies and sustainability assessments.
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...Amil Baba Dawood bangali
Contact with Dawood Bhai Just call on +92322-6382012 and we'll help you. We'll solve all your problems within 12 to 24 hours and with 101% guarantee and with astrology systematic. If you want to take any personal or professional advice then also you can call us on +92322-6382012 , ONLINE LOVE PROBLEM & Other all types of Daily Life Problem's.Then CALL or WHATSAPP us on +92322-6382012 and Get all these problems solutions here by Amil Baba DAWOOD BANGALI
#vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore#blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #blackmagicforlove #blackmagicformarriage #aamilbaba #kalajadu #kalailam #taweez #wazifaexpert #jadumantar #vashikaranspecialist #astrologer #palmistry #amliyaat #taweez #manpasandshadi #horoscope #spiritual #lovelife #lovespell #marriagespell#aamilbabainpakistan #amilbabainkarachi #powerfullblackmagicspell #kalajadumantarspecialist #realamilbaba #AmilbabainPakistan #astrologerincanada #astrologerindubai #lovespellsmaster #kalajaduspecialist #lovespellsthatwork #aamilbabainlahore #Amilbabainuk #amilbabainspain #amilbabaindubai #Amilbabainnorway #amilbabainkrachi #amilbabainlahore #amilbabaingujranwalan #amilbabainislamabad
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
External storage devices and basics of file
1. Ms. K. D. Patil, AP, SCOE,Kopargaon 1
External Storage Devices
Prepared By
Ms. K. D. Patil, AP
Department of Information Technology
Sanjivani College of Engineering, Kopargaon
2. Ms. K. D. Patil, AP, SCOE,Kopargaon 2
Storage Devices
● A storage device is used in the computers to store the data.
● The media for storing the information in a computer is
usually divided into main two types
● Primary Memory
● Secondary Memory/Auxiliary Memory
● Provides one of the core functions of the modern
computer.
● The amount of data stored is measured in kilobytes (KB).
3. Ms. K. D. Patil, AP, SCOE,Kopargaon 3
Primary Storage
● Also known as main memory.
● Main memory is directly or indirectly connected to the central processing unit via a
memory bus.
● The CPU continuously reads instructions stored there and executes them as
required.
● It is characterized by having faster access, costing more per bits and having
smaller capacity.
● Usually uses semiconductor Technology. A semiconductor chip is a very large
scale integrated (VLSI) of transitors and other electronic computers.
● Example:
– RAM
– ROM
– Cache
4. Ms. K. D. Patil, AP, SCOE,Kopargaon 4
RAM
● It is called Random Access Memory because any of the data in RAM can be
accessed just as fast as any of the other data.
● Computers store temporary data in the RAM. These could be operating
instructions, loose bits of data or content from programs that are running.
● The contents of RAM are constantly rewritten as the data is processed.
● When the computer is switched off, all the data is cleared from the RAM.
● This type of memory is called volatile (Chage rapidly) because it only stores the
data while the computer is switched on.
● RAM sticks are found on the motherboard.
● There are two types of RAM:
– DRAM (Dynamic Random Access Memory)
– SRAM (Static Random Access Memory)
5. Ms. K. D. Patil, AP, SCOE,Kopargaon 5
RAM
● Static RAM
– Faster
– More expensive
– More power consumption
– does not need to be refreshed
● Dynamic RAM
– Slower
– Less expensive
– Less power consumption
– needs to be refreshed thousands of times per second
6. Ms. K. D. Patil, AP, SCOE,Kopargaon 6
ROM
● When a computer is first switched on, it needs to load up the BIOS
(Basic Input/Output System) and basic instructions for the
hardware.
● These are stored in ROM (Read Only Memory).
● This type of memory is calleThisd non-volatile (Can’t change
rapidly) because it retains the data.
● Data stored in ROM remains there even when the computer is
switched off.
● ROM can be found on the motherboard.
● ROM memory cannot be easily or quickly overwritten or modified .
7. Ms. K. D. Patil, AP, SCOE,Kopargaon 7
Cache
● Cache is a high-speed access area that can be
either a reserved section of main memory or a
storage device.
● Most computers today come with L3 cache or
L2 cache, while older computers included only
L1 cache.
8. Ms. K. D. Patil, AP, SCOE,Kopargaon 8
Secondary Storage/External
Storage Devices
● It is not directly accessible by the CPU.
● Computer usually uses its input/output channels
access secondary storage and transfers the desired
data using intermediate area in primary storage.
● Cost is less, storage capacity is more but access
time is also more.
● Example:
– Hard disk
9. Ms. K. D. Patil, AP, SCOE,Kopargaon 9
Types
● There are three main types of storage device:
● Those that store data by magnetizing a special material that coats the
surface of a disk.
Eg. magnetic tape, floppy disk, external hard disk drives
● Those that store data using optical technology to etch the data onto
a plastic-coated metal disk. Laser beams are then passed over the
surface to read the data.
Eg. CD, DVD, Blue-ray, M-Disc
● Flash drives use solid state technology and store data in a similar
way to the BIOS chip.
Eg. Memory card, Memory stick, USB drives
10. Ms. K. D. Patil, AP, SCOE,Kopargaon 10
Hard Disk
● The hard disk drive is the main, and usually largest,
data storage device in a computer.
● It can store anywhere from 160 gigabytes to 2
terabytes.
● Hard disk speed is the speed at which content can
be read and written on a hard disk.
● A hard disk unit comes with a set rotation speed
varying from 4500 to 7200 rpm.
● Disk access time is measured in milliseconds.
11. Ms. K. D. Patil, AP, SCOE,Kopargaon 11
Floppy Disk
● Floppy disks used to be used a lot, but they are unreliable and
don’t hold very much data, so they are rarely used now.
● They hold 1.44 MB of data, so are only really useful for backing
up or moving small files that don’t contain graphics.
● They are easily damaged, which means that files stored on
them won’t always load.
● As flash memory has become cheaper, many new computers
don’t even have a floppy disk drive
12. Ms. K. D. Patil, AP, SCOE,Kopargaon 12
Magnetic Tape
● A magnetically coated strip of plastic
on which data can be encoded.
● Tapes for computers are similar to
tapes used to store music.
● Tape is much less expensive than other storage
mediums but commonly a much slower solution
that is commonly used for backup.
13. Ms. K. D. Patil, AP, SCOE,Kopargaon 13
Optical Disc
● Optical disc is any storage media that holds content
in digital format and is read using a laser assembly
is considered optical media.
● The most common types of optical media are
– Blu-ray (BD)
– Compact Disc (CD)
– Digital Versatile Disc (DVD)
14. Ms. K. D. Patil, AP, SCOE,Kopargaon 14
CDs and DVDs
● CD and DVD look exactly the same, but DVDs hold much more
data than CDs and need different drives to read them.
● CD-ROMs are read only – you can read data from them but
can’t write more data to them.
● CD-Rs allow you to write data once, but you can’t write over it.
● CD-RWs allow you to write data and then record new data over
it.
● DVD-Rs and RWs follow the same pattern.
● You need special software to write to CDs and DVDs – you
cannot simply copy files to them.
15. Ms. K. D. Patil, AP, SCOE,Kopargaon 15
Comparison
CD DVD BD
Capacity 700MB 4.7GB - 17GB 50GB
Wavelength 780nm 650nm 405nm
Read/Write
Speed
1200KB/s 10.5MB/s 36MB/s
Example CD-ROM,
CD-R
CD-RW
DVD-ROM
DVD+R/RW
DVD-R/RW
DVD-RAM
BD-R
BD-RE
16. Ms. K. D. Patil, AP, SCOE,Kopargaon 16
Flash Drives
● In recent years, flash memory has become much more popular.
● It holds a lot of data in a very small space. Flash drives are available in sizes such as
256MB, 512MB, 1GB, 5GB, and 16GB and are an easy way to transfer and store
information.
● It doesn’t need special software to use it.
● Most computers will recognize the device as soon as you plug it in.
●
Flash memory sticks connect through USB or FireWire ports.
● Many other devices, like digital cameras and MP3 players, also use flash memory.
● Flash memory cards can hold different types of data so your MP3 player could hold a data
file with your homework on it, for example.
● A small, portable flash memory card that plugs into a computer’s USB port and functions as
a portable hard drive.
●
Memory cards are usually read by connecting the device containing the card to your
computer, or by using a USB card reader.
17. Ms. K. D. Patil, AP, SCOE,Kopargaon 17
File
● A file is a collection of records.
● large collections of information stored on devices outside the
computer's internal memory.
● It usually implies that the records are stored in secondary
storage in the computer's external memory, on tapes or disks.
● As a result, the ways in which the file must be organized so that
operations on it can be carried out efficiently are dependent on
the characteristics of the secondary storage devices used to
implement the file.
● The basic operations on a file are to insert and delete records,
process or update records, and search for or retrieve records.
18. Ms. K. D. Patil, AP, SCOE,Kopargaon 18
File
● Each file is a sequence of records.
● The data is subdivided into records (e.g., student
information).
● Each record is a sequence of fields. (e.g., name,
GPA).
● One (or more) field is the key field (e.g.,name).
● All files are assigned a name that is used for
identification purposes by the operating system and
the user.
19. Ms. K. D. Patil, AP, SCOE,Kopargaon 19
Types of File
● A file stored on a storage device is a sequence of bits that can
be interpreted by an application program as a text file or a
binary file file or a binary file.
● Text Files
– A text file is a file of plain text.
– To store these data types, they must be converted to their character
equivalent formats.
– Some files can only use character data types. Most notable are file
streams (input/output objects in some object-oriented language like
C++) for keyboards, monitors and printers.
– This is why we need special functions to format data that is
input from or output to these devices
20. Ms. K. D. Patil, AP, SCOE,Kopargaon 20
Types of File
● Binary Files
– A binary file is a collection of data stored in
the internal format of the computer.
– Unlike text files, binary files contain data that is
meaningful only if it is properly interpreted by a
program. If the data is textual, one byte is used to
represent one character (in ASCII encoding). But if
the data is numeric, two or more bytes are
considered a data item.
21. Ms. K. D. Patil, AP, SCOE,Kopargaon 21
File Operations
● Using a file in a program is a simple three-step
process
● The file must be opened. If the file does not yet
exits, opening it means creating it.
● Information is then saved to the file, read from
the file, or both.
● When the program is finished using the file, the
file must be closed.
22. Ms. K. D. Patil, AP, SCOE,Kopargaon 22
File Operations
23. Ms. K. D. Patil, AP, SCOE,Kopargaon 23
File Operations
24. Ms. K. D. Patil, AP, SCOE,Kopargaon 24
Opening a File
● File access requires the inclusion of fstream.h
● Before data can be written to or read from a file,
the file must be opened.
ifstream inputFile;
inputFile.open(“customer.txt”);
25. Ms. K. D. Patil, AP, SCOE,Kopargaon 25
Default Open Mode
File Type Default Open Mode
ofstream The file is opened for output only. (Information may
be written to the file, but not read from the file.) If
the file does not exist, it is created. If the file
already exists, its contents are deleted (the file is
truncated).
ifstream The file is opened for input only. (Information may
be read from the file, but not written to it.) The
file’s contents will be read from its beginning. If the
file does not exist, the open function fails.
26. Ms. K. D. Patil, AP, SCOE,Kopargaon 26
File Mode Flag
File Mode Flag Meaning
ios::app
Append mode. If the file already exists, its
contents are preserved and all output is written to
the end of the file. By default, this flag causes the
file to be created if it does not exist.
ios::ate
If the file already exists, the program goes directly
to the end of it. Output may be written anywhere
in the file.
ios::binary
Binary mode. When a file is opened in binary
mode, information is written to or read from it in
pure binary format. (The default mode is text.)
ios::in
Input mode. Information will be read from the file.
If the file does not exist, it will not be created and
the open function will fail.
27. Ms. K. D. Patil, AP, SCOE,Kopargaon 27
File Mode Flag
File Mode Flag Meaning
ios::nocreate
If the file does not already exist, this flag will
cause the open function to fail. (The file will
not be created.)
ios::noreplace
If the file already exists, this flag will cause
the open function to fail. (The existing file will
not be opened.)
ios::out
Output mode. Information will be written to
the file. By default, the file’s contents will be
deleted if it already exists.
ios::trunc
If the file already exists, its contents will be
deleted (truncated). This is the default mode
used by ios::out.
28. Ms. K. D. Patil, AP, SCOE,Kopargaon 28
Opening a File and Closing File
●Opening File
fstream dataFile(“names.dat”, ios::in | ios::out);
●Closing File
fstream dataFile;
dataFile.close();
29. Ms. K. D. Patil, AP, SCOE,Kopargaon 29
Testing for Open Errors
dataFile.open(“cust.dat”, ios::in);
if (!dataFile)
{
cout << “Error opening file.n”;
}
OR
dataFile.open(“cust.dat”, ios::in);
if (dataFile.fail())
{
cout << “Error opening file.n”;
}
30. Ms. K. D. Patil, AP, SCOE,Kopargaon 30
Detecting the End of a File
● The eof() member function reports when the
end of a file has been encountered.
if (inFile.eof())
inFile.close();
● The eof() function returns true
when there is no more information
to be read.
31. Ms. K. D. Patil, AP, SCOE,Kopargaon 31
Reading from the file & Writing to
the File
●
Read operation
fstream fin;
fin.read( (char *) &rec, sizeof(student) );
● The read() function takes two arguments.
● &rec : Initial byte of an object stored in file.
● sizeof(student) : size of object represents the total number of bytes to be read from initial byte.
●
Write operation
fstream fout;
fout.write( (char *) &rec, sizeof(student));
● The write() function takes two arguments.
● &rec : Initial byte of an object stored in memory.
● sizeof(student) : size of object represents the total number of bytes to be written from initial
byte.