Page 2 of 3

Re: File Extensions

Posted: Wed Nov 17, 2010 4:48 pm
by Axel
Kieken72 wrote:
But know how i write in the file ? :p
system.IO.File.WriteAllText("C:\YourPath" , "hello , this is your text", Encoding.UTF8)

Re: File Extensions

Posted: Wed Nov 17, 2010 4:56 pm
by Axel
TheSecretBoy wrote:
i want when i open TESTFILE.<my extension>
it open my program with the Text < For Example how ?
RichTextBox1.Text = My.Computer.FileSystem.ReadAllText(My.Application.CommandlineArgs(0))

thanks ? (a)

Re: File Extensions

Posted: Wed Nov 17, 2010 5:09 pm
by Kieken72
YourSocksRoxx wrote:
Kieken72 wrote:
But know how i write in the file ? :p
system.IO.File.WriteAllText("C:\YourPath" , "hello , this is your text", Encoding.UTF8)
Could i place a picture in it ?

Re: File Extensions

Posted: Wed Nov 17, 2010 5:27 pm
by Axel
Kieken72 wrote:
YourSocksRoxx wrote:
Kieken72 wrote:
But know how i write in the file ? :p
system.IO.File.WriteAllText("C:\YourPath" , "hello , this is your text", Encoding.UTF8)
Could i place a picture in it ?
ofcourse but bassicly its just getting the path from the command line

Picturebox1.imagelocation = (My.Application.CommandlineArgs(0))

Re: File Extensions

Posted: Wed Nov 17, 2010 5:38 pm
by Kieken72
YourSocksRoxx wrote:
But know how i write in the file ? :p
system.IO.File.WriteAllText("C:\YourPath" , "hello , this is your text", Encoding.UTF8)[/quote]
Could i place a picture in it ?
ofcourse but bassicly its just getting the path from the command line

Picturebox1.imagelocation = (My.Application.CommandlineArgs(0))[/quote]
no a picture write to the file and some text

Re: File Extensions

Posted: Wed Nov 17, 2010 6:14 pm
by Axel
Kieken72 wrote:
YourSocksRoxx wrote:
But know how i write in the file ? :p
system.IO.File.WriteAllText("C:\YourPath" , "hello , this is your text", Encoding.UTF8)
Could i place a picture in it ?
ofcourse but bassicly its just getting the path from the command line

Picturebox1.imagelocation = (My.Application.CommandlineArgs(0))[/quote]
no a picture write to the file and some text[/quote]
do you mean like a picture in a richtextbox ?

Re: File Extensions

Posted: Wed Nov 17, 2010 6:15 pm
by Kieken72
no in a Picturebox

Re: File Extensions

Posted: Wed Nov 17, 2010 6:18 pm
by Axel
Kieken72 wrote:
no in a Picturebox
well i don't understand you , so you want to write text to a picture ?

Re: File Extensions

Posted: Wed Nov 17, 2010 6:27 pm
by Kieken72
lol no

A file type What contains a image and Text...

Re: File Extensions

Posted: Wed Nov 17, 2010 6:39 pm
by Axel
Kieken72 wrote:
lol no

A file type What contains a image and Text...
well , how about saving all the bytes of the image and ass it in your text file?