Bonjour,
CF 1.0
Visual Basic 2005
actuellement, je créé un fichier de cette facon :
Dim
wAssemby
As System.Reflection.Assembly = System.Reflection.Assembly.GetExecutingAssembly()
Dim wAppPath
As
String = System.IO.Path.GetDirectoryName(wAssemby.GetName.CodeBase)
Dim FilePath
As
String = wAppPath &
"\sauvegarde_" & textbox2.Text &
".txt"
Dim flux
As StreamWriter =
New StreamWriter(FilePath,
False, Encoding.UTF8)
flux.Write(textbox1.Text)
flux.Close()
Ce code créé un fichier .txt dans le même repertoire que mon programme.
Comment créer ce même fichier, mais dans un sous repertoire (qui doit être créé lui aussi) ?
Merci d'avance