Results 1 to 3 of 3

Thread: Help!!!!! with Input from file

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2000
    Location
    Olympia,Wa,USA
    Posts
    7
    I need a way to get info from THE END an autocad .dwg file
    this is not as simple as it sounds seeing as how the
    program keeps telling me that the EOF is after the FIRST LINE so now you see my predicament im having no problem writing to the end of the file (i write a string to the end of the file so that i can track it) but i cant read that string at the end of the file because of the eof problem...
    Please help!!!!

  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    115
    I might be all wrong here but try writing your own functoin that test for eof by getting the file length and then for every line just subtracting the len() value + 1 of the line from the total file size and then when it hits 0 you know its eof. It might work, but I don't know what a .dwg file is.
    Vuen

  3. #3
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    If you open your file in Input, the EOF will not be correct for almost all non-text files. Therefor open in Random or Binary.

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