TYBCS PHP Assignment 3

Set A 

Q: 1) Write a program to read two file names from user and append contents of first file into second file. 

Q: 2) Write program to read directory name from user and display content of the directory. 

Set B 

Q: 1) Write a program to read a flat file “student.dat”, calculate the percentage and display the data from file in tabular format.(Student.dat file contains rollno, name, Syspro, TCS, CN, PHP, JAVA, BA ) 

Q: 2) Write a program to read directory name and extension. Display the files with specified extension from that directory. 

Set C 

Q: 1) Write a menu driven program to perform various file operations. 
a) Display size of file
b) Display Last Access, changed, modified time of file 
c) Display details about owner and user of File 
d) Display type of file e) Delete a file 
f) Copy a file g) Traverse a directory in hierarchy 
h) Remove a directory 

Q: 2) Write a program to read directory name from user and display content of the directory recursively

Post a Comment

8 Comments