小编use*_*714的帖子

如何在eclipse中运行php脚本

我安装了Eclipse PDT-all-in-one-win32-2.0.0GA和WampServer 2.0.

我尝试在eclipse中作为PHP脚本运行但我有这个错误:

"当前的调试器没有任何已定义的PHP可执行文件."

我该如何创建这个.exe ??

php eclipse scripting eclipse-pdt

8
推荐指数
1
解决办法
4万
查看次数

复制文本文件

我试图逐行复制其他文本文件中的文本文件.似乎有1024个字符的缓冲区.如果我的文件中的字符少于1024个,我的功能将不会复制到另一个文件中.

此外,如果超过1024个字符但少于1024个系数,则不会复制这些超出的字符.

例如:

初始文件中有2048个字符 - 复制了2048个字符

初始文件中有988个字符 - 0已复制

初始文件中有1256个字符 - 1024个已复制

private void button3_Click(object sender, EventArgs e)
{
    // écrire code pour reprendre le nom  du fichier sélectionné et 
    //ajouter un suffix "_poly.txt"
    string ma_ligne;
    const int RMV_CARCT = 9;

    //délcaration des fichier
    FileStream apt_file = new FileStream(textBox1.Text, FileMode.Open, FileAccess.Read);
    textBox1.Text = textBox1.Text.Replace(".txt", "_mod.txt");
    FileStream mdi_file = new FileStream(textBox1.Text, FileMode.OpenOrCreate,FileAccess.ReadWrite);

    //lecture/ecriture des fichiers en question
  StreamReader apt = new StreamReader(apt_file);
  StreamWriter mdi_line = new StreamWriter(mdi_file, System.Text.Encoding.UTF8, 16);



  while (apt.Peek() …
Run Code Online (Sandbox Code Playgroud)

.net c# text file

2
推荐指数
1
解决办法
2428
查看次数

标签 统计

.net ×1

c# ×1

eclipse ×1

eclipse-pdt ×1

file ×1

php ×1

scripting ×1

text ×1