Skip to content

Cross platform check if a file or stdin has data available for read

License

Notifications You must be signed in to change notification settings

WebFreak001/hasdata

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hasdata

import hasdata;

if (stdin.hasData) // works with console input, pipes & files
	writeln("Has Data!");

About

Cross platform check if a file or stdin has data available for read

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages