CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: output file

  1. #1
    Join Date
    Sep 1999
    Posts
    24

    output file

    Hi, I need write a couple of strings to a file. The first problem is I don't know the size of strings, maybe long or maybe short. Need I use a buffer to store these strings first? The second problem is there are two parts of strings. I should finish writing one part before writing another part. Need I use two buffers to store these two parts strings?
    Thank you very much.


  2. #2
    Join Date
    Aug 1999
    Posts
    107

    Re: output file

    how are the strings being stored that you don't know the size of them? Strings in C are generally (but not always) stored with NULL terminators


Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured