function readFileAsync(filename, callback) {
// Simulate file reading asynchronously
setTimeout(() => {
const fileData = 'This is the file content.';
callback(fileData);
}, 1000);
}
readFileAsync('example.txt', (data) => {
console.log('File content: ' + data);
});