我有一个目录,有说10个.txt文件。使用打开目录: $dir_handle = @opendir($path) or die("Unable to open $path");
我需要能够读取该文本文件的文件名,然后将所有这些文件的名称写入主列表用|在每个文件名之后。我也不希望masterlist.txt写入其本身lol。因此,masterlist.txt是使用.txt文件的文件名写入的内容。
我想将一个字母的ASCII值存储到一个变量中,我该怎么做? 例如: r ASCII variable = 82
main()
{
character = "character read from a file";
variable= "r ascii"; //(in this case 82), the problem is that the letter is alway