save a newbie... saving a text file
save a newbie... saving a text file
save a newbie... saving a text file
save a newbie... saving a text file
save a newbie... saving a text file
save a newbie... saving a text file save a newbie... saving a text file save a newbie... saving a text file save a newbie... saving a text file save a newbie... saving a text file save a newbie... saving a text file save a newbie... saving a text file save a newbie... saving a text file
save a newbie... saving a text file save a newbie... saving a text file
save a newbie... saving a text file
Go Back  Xtreme Visual Basic Talk > > > save a newbie... saving a text file


Reply
 
Thread Tools Display Modes
  #1  
Old 12-15-2003, 08:58 AM
ghostranger ghostranger is offline
Newcomer
 
Join Date: Dec 2003
Posts: 3
Default save a newbie... saving a text file


ok, i just bought VB.net for a week or so. therefore, sorry if i'm stupid but please save me by helping me with my question.

ok, i need to make a program that runs the openfiledialog immediately so i added the following procedure into my form.
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim openFileDialog1 As New OpenFileDialog
openFileDialog1.Filter = "bitmap|*.bmp"
openFileDialog1.Title = "Select a bitmap"
End Class
now that worked perfect. but i need to channel the exact location of the file into a text file. eh... someone guide me about that part?

thanks a lot if you've decided to help me hEhE
Reply With Quote
  #2  
Old 12-15-2003, 09:22 AM
reboot's Avatar
rebootsave a newbie... saving a text file reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,614
Default

Is your question how to write to a file in vb.Net?

Code:
Dim file As New System.IO.StreamWriter("c:\test.txt") file.WriteLine(openFileDialog1.FileName) file.Close()
This what you want?
__________________
~ Quod non mortiferum, fortiorem me facit ~

Avatar by lebb

Last edited by reboot; 12-15-2003 at 09:28 AM.
Reply With Quote
  #3  
Old 12-15-2003, 09:29 AM
ghostranger ghostranger is offline
Newcomer
 
Join Date: Dec 2003
Posts: 3
Default

yes, it's a question on how to write a file. but i'm new, so please show me step by step or the procedure to be used for that
Reply With Quote
  #4  
Old 12-15-2003, 09:40 AM
reboot's Avatar
rebootsave a newbie... saving a text file reboot is offline
Keeper of foo

Retired Moderator
* Guru *
 
Join Date: Nov 2001
Location: Graceland
Posts: 15,614
Default

Isn't that what I just did?
__________________
~ Quod non mortiferum, fortiorem me facit ~

Avatar by lebb
Reply With Quote
  #5  
Old 12-15-2003, 09:46 AM
ghostranger ghostranger is offline
Newcomer
 
Join Date: Dec 2003
Posts: 3
Talking

holy * * * *, it works!
thanks a lot...

sorry i wasn't looking too hard lol.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
File I/O GavinO Tutors' Corner 5 04-17-2013 01:18 PM
Installation Problem - PLs help urgenlty dpdsouza Installation / Documentation 4 12-02-2004 07:09 PM
Save array into the text file lawlaw81 General 3 07-24-2003 04:56 PM

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
save a newbie... saving a text file
save a newbie... saving a text file
save a newbie... saving a text file save a newbie... saving a text file
save a newbie... saving a text file
save a newbie... saving a text file
save a newbie... saving a text file save a newbie... saving a text file save a newbie... saving a text file save a newbie... saving a text file save a newbie... saving a text file save a newbie... saving a text file save a newbie... saving a text file
save a newbie... saving a text file
save a newbie... saving a text file
 
save a newbie... saving a text file
save a newbie... saving a text file
 
-->