Posts

Html Practical Assignments

Image
 HTML PRACTICAL ASSIGNMENT: PROGRAM: <!--           Assignment 1 Set A Q.1  Q.1 Create an html page with 7 separate lines in different sizes. state size of each line in its text.  --> <!DOCTYPE html> <html>  <head>      <title> mysize </title>  </head>  <body>     <h3> <big> <b> This is heading tags for different sizes </b> </big> </h3>   <h1> My Size is 1 </h1>   <h2> My Size is 2 </h2>   <h3> My Size is 3 </h3>   <h4> My Size is 4 </h4>   <h5> My Size is 5 </h5>   <h6> My Size is 6 </h6>   <h>  My Size is normal </h>    </body>  </html> WebPage Output: This is heading tags for different sizes My Size is 1 My Size is 2 My Size is 3 My Size is 4 My Size is 5 My ...

File handling in c

    FILE HANDLING: Different operations that can be performed on a file are:    Creation of a new file ( fopen with attributes as “a” or “a+” or “w” or “w+”) Opening an existing file ( fopen ) Reading from file ( fscanf or fgets ) Writing to a file ( fprintf or fputs ) Moving to a specific location in a file ( fseek, rewind ) Closing a file ( fclose ) The argument mode points to a string beginning with one of the following sequences (Additional characters may follow these sequences.): ``r'' Open text file for reading. The stream is positioned at the beginning of the file. ``r+'' Open for reading and writing. The stream is positioned at the beginning of the file. ``w'' Truncate file to zero length or create text file for writing. The stream is positioned at the beginning of the file. ``w+'' Open for reading and writing. The file is created if it does not exist, otherwise it is truncated. The stream ...