mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
os: add flush method
This commit is contained in:
parent
3281e44e84
commit
5d7bac2016
@ -239,6 +239,10 @@ pub fn (f File) writeln(s string) {
|
||||
C.fputs('\n', f.cfile)
|
||||
}
|
||||
|
||||
pub fn (f File) flush() {
|
||||
C.fflush(f.cfile)
|
||||
}
|
||||
|
||||
pub fn (f File) close() {
|
||||
C.fclose(f.cfile)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user