Data update
This commit is contained in:
parent
07c7092a52
commit
61b93a2cd1
313 changed files with 6160 additions and 346 deletions
13
Task/Write-entire-file/FutureBasic/write-entire-file.basic
Normal file
13
Task/Write-entire-file/FutureBasic/write-entire-file.basic
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
void local fn SaveFile
|
||||
CFStringRef fileString = @"The quick brown fox jumped over the lazy dog's back."
|
||||
CFURLRef url = savepanel 1, @"Choose location to save file.", @"txt", @"Untitled", @"Save"
|
||||
if (url)
|
||||
fn StringWriteToURL( fileString, url, YES, NSUTF8StringEncoding, NULL )
|
||||
else
|
||||
// User canceled
|
||||
end if
|
||||
end fn
|
||||
|
||||
fn SaveFile
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue