fb:porticula NoPaste
Line input example 3
Uploader: | darksider3 |
Datum/Zeit: | 13.10.2011 18:35:19 |
Dim as string Eingabe
Declare Function dats (datei as string = "") As string
Function exits() as Integer
print STRING(22, "-")
Print "You want to exit,Please press any key"
return 0
End function
Function dats(datei as string = "") as string
Dim as Integer ff
Dim as String Zeile
ff = FREEFILE
Do
INPUT "DATEI: ",datei
if datei = "exit" OR datei = "" Then
exits()
exit do
Endif
PRINT
OPEN datei FOR INPUT AS #ff
PRINT "Inhalt: "
PRINT STRING(32, "-")
Do
Do
LINE INPUT #ff, Zeile
loop
Loop Until Eof(1)
PRINT STRING(32, "-")
PRINT
CLOSE #ff
PRINT "DATEI: "+datei
loop
return Zeile
End Function
Function RandJoke() as integer
return 0
end Function
'----------------------------------
Do
PRINT "Waehle aus: "
PRINT
PRINT "1) Datei Ausgeben"
PRINT "123) Beenden"
PRINT
INPUT "Eingabe: ", Eingabe
if Eingabe = "1" Then
dats()
Endif
if Eingabe = "123" Then
exits()
exit Do
ENDif
if str(Eingabe) = "" then
exits()
exit do
ENDIF
if str(Eingabe) = "exit" Then
exits()
exit do
Endif
loop
SLEEP