Results 1 to 5 of 5

Thread: fstream open/close

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: fstream open/close

    how can it be faster?
    Qt Code:
    1. while ((choice=getchar()) != '0' ) {
    To copy to clipboard, switch view to plain text mode 
    here, Program wait for an input......
    Regards

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: fstream open/close

    try f.flush() before the close then...

  3. #3
    Join Date
    Jan 2006
    Posts
    976
    Thanks
    53
    Qt products
    Qt3
    Platforms
    Windows

    Default Re: fstream open/close

    Quote Originally Posted by high_flyer View Post
    try f.flush() before the close then...
    doesn't work but this is ok:
    Qt Code:
    1. file.clear();
    2. file.close()
    To copy to clipboard, switch view to plain text mode 
    Regards

Similar Threads

  1. fstream -> stdout
    By zlatko in forum General Programming
    Replies: 11
    Last Post: 25th January 2006, 05:15

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.