data reading
-
Hi, I am trying to read a formatted data file using streaReader from a simple project which has three forms. When I type the statement, it says variable (streamReader) not defined. Imports system.io statement is there in first form code. I would appreciate any clues. Thanks amanjot
-
Hi, I am trying to read a formatted data file using streaReader from a simple project which has three forms. When I type the statement, it says variable (streamReader) not defined. Imports system.io statement is there in first form code. I would appreciate any clues. Thanks amanjot
You should import system.io in each form on which you going to create object for streamreader... Suman Singh
-
Hi, I am trying to read a formatted data file using streaReader from a simple project which has three forms. When I type the statement, it says variable (streamReader) not defined. Imports system.io statement is there in first form code. I would appreciate any clues. Thanks amanjot
Since you only imported the System.Io namespace on the first form, you can only use it's classes on the first form. If you want to use the StreamReader class on you 2nd and 3rd forms, each of them will also have to import the System.Io namespace. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome