Visual Basic File Manipulation Tutorials

If you want a program to be able to keep track of information between each time it is run you have to store it somewhere. One of the primary ways to store information is by saving it to a file and then reading it out the next time your program runs. These tutorials show you how to save and read data from files. Use them to save information or to create your own better Notepad program in Visual Basic.

  • Level3

    Ovaj VB tutorial gradi poslednji i pokazuje kako možete da kreirate naprednije PDF fajlove. Ona vas uči kako da napravite višeslojni dokument, sa postavkom zaglavlja, podnožja stranice, brojeve stranica, oblika i slika.

  • Level1
    Once you start developing even the most basic of desktop applications you will hit a point where you need to save data out to a file. The simplest way to do this is to simply save it out into a text file (if you want to get more advanced you can encrypt it). This tutorial gives you the understanding you need to save data out into a simple text format.
  • Level1
    So you have a file full of text how can you parse and read it. This File Reading VB.NET tutorial explains exactly how. It goes over examples of fixed width files, tab and comma delimited files, and even how to use the .NET TextFieldParser class. After going through these examples you will be handling text files with the best of them.
  • Level1
    Windows has some great built in dialogs for both opening and saving files. As a developer it is easy for us to hook into this built in functionality and provide our users with fully functional open and save dialogs that they expect and are used to through other applications.
  • Level2
    Even though .NET gives us way more power than compared to the old VB6 days. At times we need to fall back to the advanced capabilities that only the Win32 API can offer. This tutorial walks through how you can declare Windows APIs and use them in your VB.NET app. It focuses primarily on some DiskSpace and File APIs but the concepts presented here can easily be built upon for any of your Windows API needs.
  • Level1
    XML is the standard. Virtually any "real" application is able to save its data in XML and with VB.NET we have the same capabilities. This tutorial uses a simple console app so you aren't distracted by any "fluff" and can focus completely on the Visual Basic XML capabilities.
  • Level2
    Learn how to use the DriveListBox, DirListBox, and FileListBox to interact with the Windows file system from within your own VB6 environment. This VB tutorial teaches you how to create a file browser and viewer from within Visual Basic.
  • Level4
    Control Break concepts allow you to break apart and display fields from a sorted sequential file. In this Visual Basic tutorial you learn how this can be used to generate your own reports from a database or your own file format. This is especially useful if you don't want to use some other report generator (like Crystal reports).
  • Level3
    The VB6 File System Object (FSO) allows you to do many things that aren't built into the normal VB commands. With the FSO you can do all sorts of file and folder manipulation, querying, reading, writing, and many many other things.
  • Level2
    Visual Basic has many built in functions that allow you to manipulate files, directories, and other file system properties. This VB tutorial shows how you can use these functions to manipulate and change Window's file system objects.
  • Level2
    Random Access files allow you to read from a specified area of the file with out having to read everything before it. This works great if you want to read the 50th record of your data with out reading all 49 records before it. Check out how to do this in this Random Access VB tutorial.
  • Level2
    If a file doesn't have a standard text format you will need to read and write to it using VB's binary functions. This works well for files such as pictures, zip files, exe's, and other resource files that aren't just text. Learn how to manipulate binary files in this VB6 tutorial.
  • Level2
    Many times you need to write data from your VB application to a file. This tutorial explains how you can use the Write # and Print # commands to write out your variables into a sequential file.
  • Level2
    COBOL is a classic programing language that many people have used. Even if you don't ever write any COBOL programs yourself you might very well have to work with data that was produced by a COBOL program written in the past. This VB6 tutorial explains how you can interact with these ancient COBOL files within Visual Basic.
  • Level2
    Many times you need to read a file that has each field a fixed width. This can be used to keep track of data (like a poor mans database) or if you are reading in a file that a different program printed out.
  • Level3
    This VB tutorial builds off the last and demonstrates how you can create more advanced PDF files. It teaches you how to create a multi-page document, with page headers, footers, page numbers, shapes, and images.

    In the previous tutorial we looked out how to create a simple PDF document that was one page and was only text. If you've seen many PDF documents on the web or elsewhere you know that they usually include more than just text. Fortunately we are able to do these things as well.

  • Level2
    Creating PDF documents in Visual Basic has always been a difficult task. Many times people have to purchase controls to do it for them. Not with this Visual Basic tutorial. PDF documents can be created in a snap using the mjwPDF class. This is the first in a series of tutorials. It covers the creation of a basic PDF document.
  • Level1
    This tutorial explains in detail how you can open text files in different formats and read them into your Visual Basic program.
  • Level2
    Sometimes we want to use windows resource files to store our resources. Learn how you can store bitmaps, waves, AVI's, icons, strings, etc. in a Windows resource file and access it from your VB program.
  • Level2
    Visual Basic stores resource in the forms .frx file. We can do the same things with our custom resources by using property bags.
  • Level3
    Windows resource files are sometimes a pain to use. Instead we can store resources in binary format in our own custom resource file using only Visual Basic 6. Than to read the resources you do the same in reverse.

If you enjoyed this post, subscribe for updates (it's free)