Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionwhile (true) { size = s.Read(data, 0, data.Length); if (size > 0) { streamWriter.Write(data, 0, size); } else { break; } } streamWriter.Close(); }
String outputPath = inputFile.Substring(0, inputFile.LastIndexOf('\\')+1); // rajouter +1
// output path String outputPath = textBoxFileName.Text.Substring(0, textBoxFileName.Text.LastIndexOf('\\')+1);
// output path String outputPath = textBoxFileName.Text.Substring(0, textBoxFileName.Text.LastIndexOf('\\textBoxfilename.Text')+1);??
// output path String outputPath = inputFile.Substring(0, inputFile.LastIndexOf('\\')+1); outputPath += inputFile.Substring(inputFile.LastIndexOf('\\')+1); outputPath = outputPath.Remove(outputPath.LastIndexOf('.')) + "\";
// output path String outputPath = textBoxFileName.Text.Substring(0, textBoxFileName.Text.LastIndexOf('\\') + 1); outputPath += textBoxFileName.Text.Substring(textBoxFileName.Text.LastIndexOf('\\') + 1); outputPath = outputPath.Remove(outputPath.LastIndexOf('.')) + "\";
private void pictureBox2_Click(object sender, EventArgs e) { \(textBoxFileName.Text.LastIndexOf('\\') + 1)\Background.png; }
private void pictureBox2_Click(object sender, EventArgs e) { \(textBoxFileName.Text.LastIndexOf('\\') + 1)\Background.png; }
private void pictureBox2_Click(object sender, EventArgs e) { \(textBoxFileName.Text\Background.png; }
String outputPath = textBoxFileName.Text.Substring(0, textBoxFileName.Text.LastIndexOf('\\') + 1);
private void pictureBox2_Click(object sender, EventArgs e) { string directoryName = textBoxFileName.Text.Substring(textBoxFileName.Text.LastIndexOf('\\Background.png') + 1); }
String outputPath = textBoxFileName.Text.Substring(0, textBoxFileName.Text.LastIndexOf('\\') + 1); outputPath += "\\Background.png";