Results 1 to 2 of 2

Thread: Multiple access to a file in C + + under Windows

  1. #1
    Aaron123 is offline Member
    Join Date
    Apr 2009
    Posts
    77
    Rep Power
    4

    Default Multiple access to a file in C + + under Windows

    Hello,

    Accustomed to linux, and I am developing a small utility in Windows XP that can read a file while it is open read / write by another process. Let me explain:

    - A program that I 1.exe imposed and I can not change continuously writing binary data in a file 1.txt

    - I want to do a program 2.exe reading every 15 s if data are present in 1.txt.

    When 1.exe is running, can not access 1.txt read or copy this file to a temporary file time to read it by 2.exe. Linux allows him!

    I found a small utiliaire (unlocker, which allows a copy, but I wish we could do without using external program.

    Thank you for your help.

  2. #2
    bunnut78 is offline Senior Member
    Join Date
    Mar 2009
    Posts
    145
    Rep Power
    4

    Default

    Must go through the Win32 API management ficheirs which contains functions to open ficheir with end parameters of settings or FILE * iostream does not.

    Otherwise see the side of boost:: filesystem

Similar Threads

  1. Using an ftp network to access your file
    By AndersonDiaz in forum Networking Jargons
    Replies: 0
    Last Post: 01-06-2010, 02:12 PM
  2. Create a File with Password Access on Windows
    By Justin Henry in forum Windows XP
    Replies: 0
    Last Post: 12-23-2009, 05:16 PM
  3. No file access when CD is in drive after 9.1 install.
    By Dexter Hogg in forum Linux/Free BSD
    Replies: 0
    Last Post: 12-10-2009, 10:36 AM
  4. Replies: 0
    Last Post: 10-12-2009, 05:58 PM
  5. Access Multiple E-Mail Addresses via Gmail
    By sanita in forum Everything Else
    Replies: 0
    Last Post: 03-23-2009, 10:18 AM

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
  •  
SEO by SubmitEdge

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48