Page 1 of 2
i need help with setting files .ini
Posted: Thu Mar 17, 2011 6:46 pm
by marve25
i need help to make a program that can save multiply textboxes into a single .ini file and then open it and put the text back in the textboxes again
an example
http://www.youtube.com/watch?v=cZaIw1PX ... ure=relmfu
Re: i need help with setting files .ini
Posted: Thu Mar 17, 2011 6:51 pm
by Napster1488
my.computer.filesystem.writealltext(textbox.text,pfad der datei)
un für text in die textbox
textbox1.text=my.computer.filesystem.readalltext(datei)
Re: i need help with setting files .ini
Posted: Thu Mar 17, 2011 7:43 pm
by marve25
umm... in english please?
Re: i need help with setting files .ini
Posted: Thu Mar 17, 2011 8:13 pm
by Napster1488
thats english ...
to write the text in file u need this Code
My.Computer.Filesystem.WriteallText("TEXT to WRITE","Path and FileName")
To Read text from a File into a TextBox
Textbox1.text=My.Computer.Filesystem.ReadAllText("Path and FileName")
Understand ?!
Re: i need help with setting files .ini
Posted: Thu Mar 17, 2011 8:34 pm
by marve25
yes, but i were wondering how to do it with two or more textboxes
Re: i need help with setting files .ini
Posted: Thu Mar 17, 2011 8:47 pm
by Napster1488
to write the text in file u need this Code
My.Computer.Filesystem.WriteallText(textbox1.text & textbox2.text & textbox3.text,"Path and FileName")
Re: i need help with setting files .ini
Posted: Thu Mar 17, 2011 8:59 pm
by marve25
yes, but to load it into the textboxes from the file, and the text still have the same place into the textboxes, if you watch the video you would understand.
Re: i need help with setting files .ini
Posted: Thu Mar 17, 2011 9:19 pm
by Napster1488
To Help you , you have better explain what you want...
And if u want that textbox1.text is in first line in text file and textbox2.text in next line then u need tp edit code (textbox1.text & vbnewline & textbox2.text & vbnewline & textbox3.text) like this.
Re: i need help with setting files .ini
Posted: Thu Mar 17, 2011 9:23 pm
by marve25
ok, is it the same with getting them back in the textboxes from the file?
Re: i need help with setting files .ini
Posted: Thu Mar 17, 2011 9:27 pm
by Napster1488
i mean this for the writing code...
and later u when u get the text back from the file into the textbox it appears textbox1.text and in next line text from other textbox...