Skip to content

Instantly share code, notes, and snippets.

@jafar260698
Created May 24, 2024 04:38
Show Gist options
  • Save jafar260698/73397de3edfb6c1333288c9cba38a0ce to your computer and use it in GitHub Desktop.
Save jafar260698/73397de3edfb6c1333288c9cba38a0ce to your computer and use it in GitHub Desktop.
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