Results 1 to 9 of 9

Thread: [2005] StreamWriter/Reader declaration

Threaded View

  1. #1

    Thread Starter
    Addicted Member Abrium's Avatar
    Join Date
    Feb 2007
    Location
    The Great State of Texas
    Posts
    205

    Resolved [2005] StreamWriter/Reader declaration

    Simple question involving streamwriter declarations. This is what I have:
    Code:
    Imports System.IO.StreamWriter
    Public Class Form1
    Public Var as System.IO.StreamWriter
    Var = System.IO.File.CreateText("Text.txt")
    VB is giving me the error that states var is not delcared and I can't figure out why, I have rewritten it a few times as per the book but with no luck. Any ideas?
    Last edited by Abrium; Apr 24th, 2007 at 02:23 AM.
    Abrium
    Asking the beginners questions so you don't have to!
    If by chance hell actually froze over and I some how helped you... Please rate.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width