Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
11
Task/File-input-output/Gambas/file-input-output.gambas
Normal file
11
Task/File-input-output/Gambas/file-input-output.gambas
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
Public Sub Main()
|
||||
Dim sOutput As String = "Hello "
|
||||
Dim sInput As String = File.Load(User.Home &/ "input.txt") 'Has the word 'World!' stored
|
||||
|
||||
File.Save(User.Home &/ "output.txt", sOutput)
|
||||
File.Save(User.Home &/ "input.txt", sOutput & sInput)
|
||||
|
||||
Print "'input.txt' contains - " & sOutput & sInput
|
||||
Print "'output.txt' contains - " & sOutput
|
||||
|
||||
End
|
||||
Loading…
Add table
Add a link
Reference in a new issue