- Write the contents of the contacts series out to a contacts3.txt file with /lines. What is different now?
- Try out write/part with 20 as an argument. What does it do?
- write/seek %file new-text n (where n is a number) is used to replace the text in %file starting at position n+1. Try this out for the contacts series and replace John in the first item with Adam.
- Use save and load to store and read our contacts series in a file.
- Rewrite the appin function with a copy "" and call it several times to see the difference.
- Write a script to ask the user the currency and the format type she/he is interested in (XML or JSON). Here, you have to use the http://www.floatrates.com/daily/USD.xml format, which doesn't use query string parameters. Try it out by obtaining data in JSON format. Hint: Use probe to see whether your URL is correct!
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand