Question
Only in ML not in any other language! Only in ML not in any other language! Please and thank you. strip:(string * string) -> unit
Only in ML not in any other language! Only in ML not in any other language! Please and thank you.
strip:(string * string) -> unit
It will input a file that will be read and a file that will be for writing. The input file will contain multiple lines of text of either integers or non-integers. Your function will write to the output file the same lines of text but with the non-integers removed. Example: file named first.txt and contains: 29, stop, 100, 2, gators, 1991. The output file named second.txt should display only the numbers (29,100,2,1991). Should not know the file in advance so even it's blank it should return a blank output file. Use Int.fromString and TextIO.inputLine to process the integers from the file. No other structures or library functions are allowed without explicit permission. Please any help on this would be appreciated.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started