stdin make a more.exe my own

New to FreeBASIC? Post your questions here.
Post Reply
honey data
Posts: 28
Joined: Feb 11, 2018 19:54
Location: portugal lisbon
Contact:

stdin make a more.exe my own

Post by honey data »

im wat to make a program like more.exe

run command line:

dir | more.exe



to learn to do a percent bar

Code: Select all

dim s as string
dim ss as string
dim i as integer
dim d as integer

color 15,1
cls

open cons for input as #1
do
line input #1,s
print s
 if eof(1) then exit do
loop


close #1


print "press key to continue";
sleep
Post Reply