Difference between form handling and file handling
- Form Handling
- Form handler just checks the input.
- Confirm the name and address given.
- Use pattern to confirm email, SSN, zip code(It will allow to the user to know the problem)
- Doing more extensive calculations,
- Using the information to construct a customized HTML page for the client.
- Use to prevent web from abuse(From malicious use such as
- header injection attack
- cross-site scripting
- SQL injection
2.File handling
- Refers to the transfer of data to/from a storage medium
- System IO.namespaces contain types that enable reading and writing on data streams and files.
- File handling has to deal with directory path, disk, storage, and file/directory name,
- Ordered and named collection of bytes that has persistent storage (Doesn't disappear after power off)
- Sequence of bytes that can be read from and written to
- May represent disk, memory , network etc..
No comments:
Post a Comment