Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 01:38

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Read Input from .txt file

Discussion on Read Input from .txt file within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2011
Posts: 11
Received Thanks: 1
Read Input from .txt file

Hallo,

Ich habe ein Programm, was über die CMD Konsole ausgeführt wird.
In drei verschiedenen Dialogen werden Tasteneingaben eingelesen, um den weiteren Programmablauf zu bestimmen.

Diese drei Eingaben will ich jetzt über eine Textdatei bestimmen
Ich hab mir das ungefähr so vorgestellt:

Man hat eine txt Datei die pro Zeile einen Buchstaben enthält:
Code:
y
n
y
Das würde soviel heißen wie:
Dialog 1: ja
Dialog 2: nein
Dialog 3: ja

Weiß jemand, wie man sowas realisieren kann?
aero.max is offline  
Old 07/01/2011, 23:02   #2
 
elite*gold: 115
Join Date: Oct 2007
Posts: 9,390
Received Thanks: 12,344
Dein Programm: test.exe
Deine Textdatei: test.txt

In die Konsole:
Code:
test.exe < test.txt
ms​ is offline  
Thanks
1 User
Old 07/02/2011, 10:56   #3
 
elite*gold: 0
Join Date: Jun 2011
Posts: 11
Received Thanks: 1
Danke
hat soweit geklappt.
aero.max is offline  
Reply


Similar Threads Similar Threads
File Read Problem
11/25/2010 - AutoIt - 4 Replies
Hi all Könnt mir jemand diese Func "zurecht" biegen ? Des tuts einfach net Func _such() For $File = 0 to UBound($File)-1 If FileReadLine($File) == "Aa" Then MsgBox(0 , "File Reader" , "Dieses Wort wurde gefunden") Else
unable to read the project file ?
07/04/2010 - CO2 Private Server - 6 Replies
http://img38.imageshack.us/img38/3475/46385551.png Uploaded with ImageShack.us
Question about Coding.... Please Read and Input Your Idea.
03/09/2010 - CO2 Private Server - 14 Replies
Well basically I want to know if anyone has ever heard of or seen anything like this before. A person I met has this pserver, and on it they have what they call Epics. They claim as if these are AI or Artificial Intelligence Characters. But you see my dilemma is they are claiming that each of these can imitate people, have their own attitude and can talk to you, as well as normal humans. Just seems odd to me, I've never seen anything like it. The people claim: They've got the basic GM...
how can i read .dat file or .c3 file?
09/09/2009 - Conquer Online 2 - 5 Replies
Hello can anybody tell me how can i read .dat file or .c3 file? i rly need this please help me guys if ya know how to do it:)
how to hex dekaron.exe to read file outside before data.pak
03/01/2009 - Dekaron - 3 Replies
guy. i want to hex dekaron.exe to read file outside data.pak if file not exit to read file in data.pak sample in process monitor program:: C:\2Moons\Data\usa\share\maplist.csv PATH NOT FOUND Desired Access: Generic Read if file not exit to read in data.pak i'm sorry for noob eng language xD



All times are GMT +2. The time now is 01:38.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.