- 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
Philippines
Mexico
Thailand
Ukraine
Luxembourg
Estonia
Lithuania
Norway
Chile
South Korea
Ecuador
Colombia
Taiwan
Switzerland
Indonesia
Cyprus
Denmark
Finland
Poland
Malta
Czechia
New Zealand
Austria
Turkey
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Malaysia
South Africa
Netherlands
Bulgaria
Latvia
Japan
Slovakia