Files
Download
1 / 7

Files - PowerPoint PPT Presentation


  • 134 Views
  • Uploaded on

Files. CHAPTER 19. Files. RAM vs. Files of CD or HD Faster slower Costs more cheaper Temporary permanent Stores while copied to RAM to Executing execute Size 32, to 128, 256… floppy 1.4M CD 650 MB, HD Billions Bytes.

loader
I am the owner, or an agent authorized to act on behalf of the owner, of the copyrighted work described.
capcha
Download Presentation

PowerPoint Slideshow about ' Files' - kylar


An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -
Presentation Transcript
Files

Files

CHAPTER 19


Files1
Files

  • RAM vs. Files of CD or HD

  • Faster slower

  • Costs more cheaper

  • Temporary permanent

  • Stores while copied to RAM to

    • Executing execute

  • Size 32, to 128, 256… floppy 1.4M

    • CD 650 MB, HD Billions Bytes


Files security and applets
Files security and Applets

  • Downloaded from a web page run via java enabled browser or appletviewer on users PC. (security rules for applets in Java – very strict, examples can not read, write to local files only communicate with original server etc. by default


Streams bytes continuous
Streams – bytes continuous

  • Essentials of streams: (In)

  • 1. Open file

  • 2. Read data into variables

  • 3. Close file

  • (Out)

  • 1. Open file

  • 2. Output/write items in required sequence

  • 3. Close file


Buffer a chunk of memory
Buffer – a “chunk” of memory

  • “Spoon fed” to a device, like a printer that is much slower that CPU. The CPU can is then free to run full speed until another buffer full is needed by the device


File example in text filedemo1 see author s web page and run examine
File example in text “FileDemo1” See author’s web page and run/examine

  • File input See “FileDemo2”

  • File Search See “FileSearch” – seeks a string within the file

  • “FileDialog” “gets” a file, uses a window with a “load” button


The system class
The System Class page and run/examine

  • .in, .out, .err (input/output/error)

  • Program “Finder” See Author’s web page, run, examine

  • File “TinyBrowser”

    • Gets a program from a URL, displays it in a window


ad