1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
| using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Windows.Forms;
namespace jdr
{
class races
{
string[] noms;
string[] forceMini;
string[] adresseMini;
string[] charismeMini;
string[] courageMini;
string[] intelligenceMini;
string[] forceMaxi;
string[] adresseMaxi;
string[] charismeMaxi;
string[] courageMaxi;
string[] intelligenceMaxi;
string[] pvBase;
public void test()
{
Console.WriteLine("passage 1 /2");
}
public void Load()
{
Console.WriteLine("\\jdr\\races");
string[] files = Directory.GetFiles(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\jdr\\races");
Console.WriteLine(files.Length);
Console.WriteLine("passage2");
for (int i = 0; i < files.Length; i++)
{
FileInfo f = new FileInfo(files[i]);
StreamReader stream = new StreamReader(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\jdr\\races\\" + f.Name);
noms = new string[files.Length];
for (int a = 0; !stream.EndOfStream; a++)
{
Console.WriteLine("test");
noms[a] = stream.ReadLine();
Console.WriteLine(noms[a]);
}
stream.Close();
}
MessageBox.Show(":");
}
}
} |