File Management Learn programming with Visual Basic (VB.net) exercises

 Visual Basic (VB.net) exercises

 81 Writing to a text file
Create a program to ask the user for several sentences (until they just press Enter) and store them in a text file named "sentences.txt"...
 57 Appending to a text file
Create a program to ask the user for several sentences (until they just press Enter) and store them in a text file named "sentences.txt". If the file ...
 60 Display file contents
Create a program to display all the contents of a text file on screen (note: you must use a StreamReader). The name of the file will be entered in the...
 47 Extended TextToHTML (files)
Expand the TextToHtml class, so that ir can dump it result to a text file. Create a method ToFile, which will receive the name of the file as a parame...
 52 Logger
Create a class Logger, with a static method Write, which will append a certain text to a file: Logger.Write("myLog.txt", "This text is being logged");...
 52 More
Create a program which behaves like the Unix command "more": it must display the contents of a text file, and ask the user to press Enter each time th...
 55 Text replacer
Create a program to replace words in a text file, saving the result into a new file. The file, the word to search and word to replace it with must ...
 61 Count letters in a file
Create a program to count the amount of times that a certain character is inside a file (of any kind). The file and the letter can be asked to the ...
 80 Reading a binary file (1: BMP)
Create a Visual Basic (VB.net) program to check if a BMP image file seems to be correct. It must see if the first two bytes are B and M (ASCII code...
 61 Writing to a binary file
Create a program which asks the user for his name, his age (byte) and the year in which he was born (int) and stores them in a binary file. Create ...
 101 Visual Basic (VB.net) to Java
Create a basic Visual Basic (VB.net) to Java translator. It must accept a Visual Basic (VB.net) source files, and create an equivalent Java source ...
 61 Invert a text file
Create a program to "invert" the contents of a text file: create a file with the same name ending in ".tnv" and containing the same lines as the origi...
 61 Reading a binay file (2 - GIF)
Create a Visual Basic (VB.net) program to check if a GIF image file seems to be correct. It must see if the first four bytes are G, I, F, 8. In ...
 64 Friends database, using files
Expand the "friends database", so that it loads data from file at the beginning of each session (if the file exists) and saves the data to file when t...
 86 Pascal to Visual Basic (VB.net) translator
Create a basic Pascal to Visual Basic (VB.net) translator. It will accept program such as: example program; var i: integer; max: integer; b...
 107 Convert a text file to uppercase
Write a program to read a text file and dump its content to another file, changing the lowercase letters to uppercase. You must deliver only the "....
 67 Convert any file to uppercase
Write a program to read a file (of any kind) and dump its content to another file, changing the lowercase letters to uppercase. You must deliver on...
 84 File inverter
Create a program to "invert" a file: create a file with the same name ending in ".inv" and containing the same bytes as the original file but in rever...
 53 File encrypter
Create a program to encrypt a text file into another text file. It must include the encrypter class you have created previously (in January 17th)...
 54 Count words
Create a Visual Basic (VB.net) program to count the amount of words stored in a text file...
 62 BMP width and height, BinaryReader
reate a Visual Basic (VB.net) program to display the width and the height of a BMP file, using a BinaryReader. The structure of the header of a BMP...
 58 TXT to HTML translator
Create a "Text to HTML converter", which will read a source text file and create a HTML file from its contents. For example, if the file contains: Ho...
 51 Invert binary file V2
Create a program to "invert" a file, using a "FileStream": create a file with the same name ending in ".inv" and containing the same bytes as the orig...
 138 BMP width & height, FileStream
Create a Visual Basic (VB.net) program to display the width and the height of a BMP file, using a FileStream. Remember the structure of the header: ...
 121 File copier
Create a program to copy a source file into a destination file. You must use FileStream and a block size of 512 Kb. An example of use might be: mycop...
 69 MP3 reader
ID3 specifications apply to any file or audiovisual container. However, it is usually applied primarily audio containers. There are three versions of ...
 106 C to Visual Basic (VB.net) converter
Create a program to convert simple C programs, such as the following one, to Visual Basic (VB.net): Note: the resulting program must compile correctl...
 58 File splitter
Create a program to split a file (of any kind) into pieces of a certain size. ir must receive the name of the file and the size as parameters. For exa...
 78 Encrypt a BMP file
Create a program to encrypt/decrypt a BMP image file, by changing the "BM" mark in the first two bytes with MB and vice versa. Use the advanced FileS...
 53 CSV converter
The CSV ("Comma Separated Values") is a exchange format used by many spreadsheets and management systems databases. It is a series of comma-separated ...
 61 File comparer
Create a Visual Basic (VB.net) program to tell if two files (of any kind) are identical (have the same content)....
 60 Display BPM on console
The Netpbm format is a family of image file formats designed with simplicity in mind, rather than small size. They can represent color, grayscale or B...
 69 PCX width and height
Create a program that checks if a file seems a PCX image and, if so, show your width and height, from the following specification: <---- What is the ...
 61 Extract text from a binary file
Create a program to extract (only) the alphabetic characters contained in a binary file, and dump them to a different file. The extracted characters m...
 178 Visual Basic (VB.net) to Pascal converter
Create a program to convert simple Visual Basic (VB.net) programs, such as the following one, to Pascal language...
 95 Dump
Create a "dump" utility: an hex viewer, to display the contents of a file, 16 bytes in each row, 24 files in each screen (and then it must pause befor...
 85 DBF extractor
Create a program that displays the list of fields stored in a DBF file. The DBF format is the one used by the old dBase database manager, and support...
 77 Text censorer
Create a program to "censor" text files. It must read a text file, and dump its results to a new text file, replacing certain words with "[CENSORED]"....
 51 SQL to text
You must create a Visual Basic (VB.net) program capable of parsing SQL language INSERT commands and extracting their data to separate lines of text, a...
 63 PGM viewer
The PGM format is one of the versions of NetPBM image formats. Specifically, it is the variant capable of handling images in shades of gray. Its head...
 62 Display BMP on console V2
Create a program to display a 72x24 BMP file on console. You must use the information on the header (see the exercise of Feb. 7th). Pay attention to t...