if i want to read some text data from an input file stream,
01. what hapence if there is no data
02. or if the input file contains errors
03. or if the out put file contains error because of lack of storage space on disk.

1. you get eof
2. it's your responsibility to validate data - get it wrong and your program is hosed.
3. pay attention to the return status of write functions.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.