Created
May 24, 2024 04:38
-
-
Save jafar260698/73397de3edfb6c1333288c9cba38a0ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Future<void> countQueue() async { | |
String filePath = r"C:\Windows\System32\spool\PRINTERS"; | |
File file = File(filePath); | |
file.readAsString().then((String contents) { | |
print("File contents:"); | |
print(contents); | |
}).catchError((error) { | |
print("Error reading file: $error"); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment