506 Appendix A
Additional Lab Exercises
Working with Files
Working with Files
Moving Data To and From Files
Create a VEE program to write the time of day to a file. Generate 100
random points and write them to the file. Calculate the mean and standard
deviation of the numbers and append them to the file in the following
format:
Mean: xxxxxx
Std Dev: yyyyyy
Next, read only the mean and standard deviation from the file. Figure A-26
shows moving data to and from files.
Solution—Moving Data To and From Files
Figure A-26 shows a solution for moving data to and from files.
.
Figure A-26. Moving Data To and From Files