VB.NET Tutorial 43 - Saving Text Files (Visual Basic 2008/2010)

  Рет қаралды 75,202

TeachMeComputer

TeachMeComputer

Күн бұрын

Пікірлер: 48
@TDubKong
@TDubKong 12 жыл бұрын
thanks for the video man. spot on what I needed for extra credit on my project. i am going to go looking for the other part of my project that i dont have yet amongst your tutorials. if every one you do is this well done than I may yet pass this class.
@TeachMeComputer
@TeachMeComputer 14 жыл бұрын
@swehunter2000 The next tutorial is on openfiledialog and savefiledialog if that is what you mean, but do you want a tutorial on something different?
@suupertramp
@suupertramp 14 жыл бұрын
how could you add lines to a file without deleting whats already there if it exists, like adding friends to a list or something?
@ShwaySo
@ShwaySo 11 жыл бұрын
Is it possible to write straight to the debug folder similarly to the way FromFile reads straight from the debug folder, or do you have to know the exact file pathway?
@unknowdud3
@unknowdud3 13 жыл бұрын
how to write to the same txt file from different text boxes? each thing i write in each text box i want it to be in a different line from each other.
@ChrisPBacon2010
@ChrisPBacon2010 13 жыл бұрын
Is there a way to make the program to auto-save itself every so often?
@DoombrekerPlus
@DoombrekerPlus 13 жыл бұрын
I get an error: Access to path to path C:\Test is denied.
@JACK019930
@JACK019930 13 жыл бұрын
@doombreker that seems like you either need to run vb as an administrator or just choose a different path to place it in
@gurkhasnep
@gurkhasnep 13 жыл бұрын
Is there a way to add more text to the same file without overwriting it?
@ayecapt
@ayecapt 12 жыл бұрын
you could use try catch to check the file exists? thanks..
@GeekyCompz
@GeekyCompz 12 жыл бұрын
When I Do this code, it will read the text but then when it goes to save it says that another process is using the text document. Why? Please Help Me!
@Zerolagg
@Zerolagg 13 жыл бұрын
How do i do if i want to append the file if already exists?... Where does it save the file once the program is terminated?
@tanteikhoe4393
@tanteikhoe4393 11 жыл бұрын
Once I save the file, the program cant open the file as the file not in C:\ and I also faced this problem (unauthorized access exception)
@mykel0t24
@mykel0t24 14 жыл бұрын
do you have tutorial on how to use database on VB prog???
@jayrodneybesario2225
@jayrodneybesario2225 8 жыл бұрын
hi dude how can i save a computed value to another Form ?
@axcdk
@axcdk 14 жыл бұрын
When I run this example with c:\ stream.txt in textbox1 I get "Access to the path 'c:\stream.txt' is denied."
@kb24atkim
@kb24atkim 14 жыл бұрын
can i do these on Microsoft.WindowsMobile.PocketOutlook? ive been trying hard but this error comes up System.IO.DirectoryNotFoundException
@mmc4011
@mmc4011 13 жыл бұрын
@hamstasquad11 are u using win7?
@GamePlayPc2012
@GamePlayPc2012 12 жыл бұрын
cool tut butcan you tell me how to make a save Multiple Lines From A textbox
@manupro40
@manupro40 12 жыл бұрын
how to link a pdf file through the button?
@MrXRobots
@MrXRobots 8 жыл бұрын
I want to the textbox save to txt file and it path
@vijaysinghyadav
@vijaysinghyadav 13 жыл бұрын
friend i am developing a simple pos device for saving commodities coming for processing and allot them unique id and later on search them in database with id and return their product calculating their cost in the form.
@santa69420
@santa69420 14 жыл бұрын
whrer it safe the file to?
@dropboks
@dropboks 13 жыл бұрын
@TeachMeComputer Can you make a tutorial how to open multiple files at once time ? Thank you :)
@TheSteamGamer99
@TheSteamGamer99 12 жыл бұрын
Your program is using the "text"
@axcdk
@axcdk 14 жыл бұрын
Figured it out. Can't write to root directory. Working now.
@freeesouls
@freeesouls 11 жыл бұрын
we have no option of over writing it
@aidanh3815
@aidanh3815 11 жыл бұрын
thanks man really helped me out.
@VoltWolf
@VoltWolf 14 жыл бұрын
@TeachMeComputer and @swehunter2000 I think he wants if they click yes or no on a messagebox. I think it is the advanced MsgBox.
@JaySharma1994
@JaySharma1994 11 жыл бұрын
hey cud u plz make a tutorial on serial port on vb.net it wud be really helpful
@LosTecH88
@LosTecH88 14 жыл бұрын
thanks...again...just need to explore if there is an error...thanks a lot.... thumbs up!!!
@aintisaword
@aintisaword 13 жыл бұрын
Yeah, this keeps saying access denied.
@mobiusstripclub
@mobiusstripclub 14 жыл бұрын
Good job! You can also use: My.Computer.FileSystem.WriteAllText(TextBox1.Text, TextBox2.Text, False) Done!
@PuvanFrancesco
@PuvanFrancesco 12 жыл бұрын
thanks dude...i m kind improve watching this video.
@TehMapleDude
@TehMapleDude 12 жыл бұрын
make 2 textboxes, make it load on textbox 2 (which is invisible) and use this code: textbox2.text = textbox1.text + textbox2.text then save textbox2.text
@flyrose9685
@flyrose9685 8 жыл бұрын
thank you a lot
@petardobrijevic4539
@petardobrijevic4539 10 жыл бұрын
I subscribed :)
@bettybarnes
@bettybarnes 14 жыл бұрын
thanks!
@TehMapleDude
@TehMapleDude 12 жыл бұрын
ye, works both ways xP
@Scr3amAzerbaijan
@Scr3amAzerbaijan 11 жыл бұрын
Teker Az dilinde daniw bawa duwek :D
@TheGamerNoob13
@TheGamerNoob13 9 жыл бұрын
Button4_Click(sender As System.Object, e As System.EventArgs) Handles Button4.Click Dim FILE_NAME As String = "H:\TEST\scores.txt" If System.IO.File.Exists(FILE_NAME) = True Then Dim objWriter As New System.IO.StreamWriter(FILE_NAME) objWriter.Write("skill is=" + txtskill.Text + "strength is =" + txtstrength.Text) objWriter.Close() MsgBox("Text written to file") Else MsgBox("File Does Not Exist")
@oussamaessadaoui
@oussamaessadaoui 13 жыл бұрын
i will be back !!!
@Jevan2010
@Jevan2010 13 жыл бұрын
is "fucked up" a syntax ? lool
@TehMapleDude
@TehMapleDude 12 жыл бұрын
how would it look more professional, not like they will be able to see it xD
@PegiEighterAZ
@PegiEighterAZ 11 жыл бұрын
=D
VB.NET Tutorial 44 - OpenFileDialog (Visual Basic 2008/2010)
7:53
TeachMeComputer
Рет қаралды 78 М.
VB.NET Tutorial 42 - Reading Text Files (Visual Basic 2008/2010)
6:42
TeachMeComputer
Рет қаралды 94 М.
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
Quando eu quero Sushi (sem desperdiçar) 🍣
00:26
Los Wagners
Рет қаралды 15 МЛН
Cat mode and a glass of water #family #humor #fun
00:22
Kotiki_Z
Рет қаралды 42 МЛН
VB.NET Tutorial 34 - Auto Typer (Visual Basic 2008/2010)
7:44
TeachMeComputer
Рет қаралды 64 М.
VB.NET Tutorial 33 - Using Settings (Visual Basic 2008/2010)
8:37
TeachMeComputer
Рет қаралды 49 М.
Visual Basic.NET Programming. Beginner Lesson 1. Hello Visual Studio
13:04
Computer Science Lessons
Рет қаралды 485 М.
.NET Aspire for Beginners - Full Series
1:28:16
dotnet
Рет қаралды 15 М.
The Art of Code - Dylan Beattie
1:00:49
NDC Conferences
Рет қаралды 4,7 МЛН
Writing Code That Runs FAST on a GPU
15:32
Low Level
Рет қаралды 572 М.
How does a USB keyboard work?
34:15
Ben Eater
Рет қаралды 3,3 МЛН
x86 Assembly: Hello World!
14:33
John Hammond
Рет қаралды 1,4 МЛН
Beginner's Guide to the Bash Terminal
1:14:37
Joe Collins (EzeeLinux)
Рет қаралды 2,3 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН