## Create a temporary file "test.txt":
# cat("Hello world!", "This is a test.",
# "Can you see this text?",
# "Good! Please carry on...",
# file = "test.txt", sep = "\n")
## (a) Read text (from file):
# read_ascii("test.txt")
# read_ascii("test.txt", quiet = TRUE) # y flipped
# unlink("test.txt") # clean up (by deleting file).
# \donttest{
## (b) Read text (from file in subdir):
# read_ascii("data-raw/txt/ascii.txt") # requires txt file
## (c) Scan user input (from console):
# read_ascii()
# }
Run the code above in your browser using DataLab