Hi,

I would like to crate a ics (iCalendar) file. The file content is something like this.

Qt Code:
  1. BEGIN:VCALENDAR
  2. VERSION:2.0
  3. PRODID:http://www.example.com/calendarapplication/
  4. METHOD:PUBLISH
  5. BEGIN:VEVENT
  6. UID:461092315540@example.com
  7. ORGANIZER;CN="Alice Balder, Example Inc.":MAILTO:alice@example.com
  8. SUMMARY:Eine Kurzinfo
  9. DESCRIPTION:Beschreibung des Termines
  10. CLASS:PUBLIC
  11. DTSTART:20060910T220000Z
  12. DTEND:20060919T215900Z
  13. DTSTAMP:20060812T125900Z
  14. END:VEVENT
  15. END:VCALENDAR
To copy to clipboard, switch view to plain text mode 

What is the best way to add an VEVENT in between BEGIN:VCALENDAR and END:VCALENDAR?

Do I need to read the whole file, remove END:VCALENDAR, append the new VEVENT + END:VCALENDAR and then write the whole thing again? When the calendar grows from week to week this might not be the best way.