Write # bytes to end of file
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4

Thread: Write # bytes to end of file

  1. #1
    Join Date
    Apr 2004
    Posts
    95

    Write # bytes to end of file

    How would you write, like, 8 bytes to the end of a file then read to see if those 8 bytes exist?

    thanks.

  2. #2
    Join Date
    Apr 2009
    Location
    Cochin
    Posts
    83

    Smile Re: Write # bytes to end of file

    Get the filesize in bytes.. then simply use SetFilePointer() API to move the pointer to anywhere you like... after that, do the write operation.
    "I studied everything but never topped. Today, toppers of the world's best universities are my employees"

    -William Henry Gates (Bill Gates)

  3. #3
    Join Date
    Apr 2004
    Posts
    95

    Re: Write # bytes to end of file

    can you elaborate an example of that, please?

  4. #4
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Write # bytes to end of file

    How would you write, like, 8 bytes to the end of a file then read to see if those 8 bytes exist?
    Have you even tried to google ? File handling is in almost every help file/website and is very basic. Here is one...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center