tamadsijuan
Eternal Poster
- Joined
- Feb 17, 2016
- Posts
- 849
- Reaction
- 327
- Points
- 260
Get All File Name in Directory
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace filestry
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string[] fileArray = Directory.GetFiles(@"D:\json");
for (int i = 0; i < fileArray.Length; i++)
{
textBox1.Text = fileArray;
}
}
}
}
isang filename lang nakukuha ko
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace filestry
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string[] fileArray = Directory.GetFiles(@"D:\json");
for (int i = 0; i < fileArray.Length; i++)
{
textBox1.Text = fileArray;
}
}
}
}
isang filename lang nakukuha ko