File Concepts
• A file is a named collection of data (information)
stored in secondary storage
– Secondary storage can be hard disk, floppy, zip disk,
USB disk, MP3 player, flash memory, etc.
– Contrast with primary storage (computer memory) -
files are persistent (don't disappear when the
computer is turned off).
– Files are named so that the operating system can
locate them when asked to do so.
– Most operating systems organize files using
directories (folders)
• Files are useful for many purposes - anytime that you
need to save some information to be used later. For
example:
– Documents (e.g. email messages, research papers, class notes)
– Graphics (e.g. flow charts, drawings, images)
– Structured information (e.g. databases, spreadsheets, address
books)
– Computer programs (e.g. C source files, executable files)
• Files are also useful for moving data from one program
to another such as from an editor to a compiler
• There are special issues to consider when copying a file
from one computer to another. (This will be the topic of a
future lecture.)
• Just like information in computer memory, information in
files is stored in binary form (all ones and zeros).
Results (
Thai) 3:
[Copy]Copied!
-
แนวคิดไฟล์ไฟล์เป็นชื่อชุดของข้อมูล ( ข้อมูล )
และเก็บไว้ในที่เก็บรองรองกระเป๋าสามารถฮาร์ดดิสก์ , ฟล็อปปี้ดิสก์ , ดิสก์ ZIP ,
ดิสก์ USB , เล่น MP3 , หน่วยความจำแฟลช , ฯลฯ
–ตรงกันข้ามกับการจัดเก็บหลัก ( หน่วยความจำ ) -
ไฟล์แบบถาวร ( ไม่ หายไปเมื่อคอมพิวเตอร์ปิด
) ไฟล์และชื่อเพื่อให้ระบบปฏิบัติการสามารถ
ค้นหาเหล่านั้นเมื่อถูกถามเช่นนั้น
–ระบบปฏิบัติการส่วนใหญ่จัดระเบียบไฟล์โดยใช้ไฟล์
ไดเรกทอรี ( โฟลเดอร์ ) - มีประโยชน์สำหรับวัตถุประสงค์ - หลายทุกเวลาที่คุณ
ต้องบันทึกข้อมูลบางอย่างเพื่อใช้ในภายหลัง สำหรับตัวอย่าง :
( ข้อความ , อีเมล์และเอกสาร เช่น เอกสารงานวิจัย หมายเหตุ คลาส )
( เช่นกราฟิกและแผนภูมิการไหลวาดภาพ )
) โครงสร้างข้อมูล ( เช่นฐานข้อมูลกระดาษคำนวณที่อยู่
หนังสือ ) โปรแกรม
–คอมพิวเตอร์ ( เช่น C ไฟล์ที่มา , แฟ้มที่ปฏิบัติการไฟล์ )
- ยังมีประโยชน์สำหรับการย้ายข้อมูลจากโปรแกรมหนึ่งไปยังอีกเช่นจาก
- ผู้แปล บรรณาธิการ กับ มีประเด็นที่ต้องพิจารณาเป็นพิเศษ
เมื่อคัดลอกแฟ้มจากคอมพิวเตอร์เครื่องหนึ่งไปยังอีก ( นี้จะเป็นหัวข้อของ
การบรรยาย ในอนาคต ) - เหมือนข้อมูลในหน่วยความจำของคอมพิวเตอร์ ข้อมูลใน
ไฟล์จะถูกเก็บไว้ในรูปแบบไบนารี ( คนและเลขศูนย์ )
Being translated, please wait..
