Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

fopen() network strange bug! (Developers)

posted by cpcdos(R) Homepage E-mail, FRANCE [Jura], 25.03.2015, 10:35

Hi everybody!

I have a strange problem with fopen() function with gcc
apparently, most people has the same problem (fopen() php function -> same problem):
https://www.google.fr/#safe=off&q=fopen+network
https://www.google.fr/#safe=off&q=fopen+network+share+bug
and other....

I have tested :
my drive mapped in x:
fopen("x:\myfile.abc, "r");
fopen("x:\\myfile.abc, "r");
fopen("x:/myfile.abc, "r");
fopen("x://myfile.abc, "r");
Or directly with server name :
fopen("\\MyServer\myfile.abc, "r");
fopen("\\\\MyServer\\myfile.abc, "r");
fopen("//MyServer/myfile.abc, "r");
fopen("////MyServer//myfile.abc, "r");

This not work.. (File not exist) fopen = NULL
But if I open another not existing file, he create this file, but empty and fopen not NULL :confused:

What is this bug ? There are a final solution for this problem ?

Thank

---
FAVIER Sébastien
http://cpcdos.fr.nf/

ps: Excuse my for my English level, I'm a French student

 

Complete thread:

Back to the forum
Board view  Mix view
15191 Postings in 1365 Threads, 250 registered users, 12 users online (0 registered, 12 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum