打开文本文件并执行某些命令 [英] Open Text File and execute certain command

查看:88
本文介绍了打开文本文件并执行某些命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请有人帮我
我想创建具有工作原理的软件.我的软件打开一个文件并读取其中的内容,如果我的软件在其中找到某个单词,它将执行某些命令.
我该怎么做
请帮助我
抱歉,如果我的英语不好,因为我来自印度尼西亚

someone please help me
I want to create software with the workings. my software open a file and read the contents therein, if the my software find a certain word in it then it will execute certain commands.
how do i make it
please help me
sorry if my english is bad because i''m from indonesia

推荐答案

C ++比C#难,但仍然可行.有各种各样的方法来搜索字符串中的内容.这实际上取决于您使用的是.NET,MFC还是其他工具.您是使用iostream读取文件还是使用CFile等?也许您需要发布一些代码并添加详细信息?
C++ is harder than C#, but still doable. There''s all sorts of methods for searching for contents in strings. It really depends on if you''re using .NET, MFC, or whatever. Are you using iostreams to read files, or are you using CFile, etc ? Perhaps you need to post some code and add detail ?


首先,不要重复发布.您已经提出了这个问题,而John已经在这里如何打开文本文件 [ ^ ]

第二,您似乎想要制作此应用程序的完整指南.我们不提供.首先阅读编程方面的基础教程,并询问何时陷入困境.

第三,如果您听不懂我想说的话,这里是印尼语:
Apa ini tugas kuliah吗? Kalo iya saya yakin minta tolong teman lebih efisien(Cukup traktir makan& nyediain零食)
First thing first, don''t double post. You have asked this question and John has already answered it here How To Open Text File[^]

Second, It looks like you want a complete guidance in making this application. We don''t provide that. Read a basic tutorial in programming first and ask when you get stuck on something.

Third, in case you don''t understand what I''m trying to say, Here''s in Indonesian :
Apa ini tugas kuliah? Kalo iya saya yakin minta tolong teman lebih efisien (Cukup traktir makan & nyediain snack)


这篇关于打开文本文件并执行某些命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆