Top "Fopen" questions

fopen opens a file resource, in order to read, write or append content to it.

C - Writing structs to a file (.pcap)

I am trying to write a .pcap file, which is something that can be used in Wireshark. In order to …

c struct io fopen pcap
fclose() causing segmentation fault

I have a tab-delimited text file that I am parsing. Its first column contains strings of the format chrX, where …

c segmentation-fault fopen fclose
Does fseek() move the file pointer to the beginning of the file if it was opened in "a+b" mode?

I wish to open a file using the "a+b" mode, i.e. if it does not exist it is …

c append fopen fseek
C++ Make a file of a specific size

Here is my current problem: I am trying to create a file of x MB in C++. The user will …

c++ fopen fputs
php://input - what does it do in fopen()?

$handle = fopen("/home/rasmus/file.txt", "r"); $handle = fopen("/home/rasmus/file.gif", "wb"); I can understand this that /home/…

php fopen
Is there a standard way to do an fopen with a unicode string file path?

Is there a standard way to do an fopen with a unicode string file path?

c++ unicode fopen
PHP mkdir() and fopen() does not work - permissions problem? umask problem?

The following PHP script fails to create the directory. It will also fail to create the file (when the directory …

php fopen mkdir umask
Why would fopen fail to open a file that exists?

I'm on Windows XP using Visual Studio 6 (yes I know it's old) building/maintaining a C++ DLL. I'm encountered a …

c++ windows file-io fopen visual-c++-6
what does the error message 'Operation now in progress' mean?

When trying to open a file using this command: $fd = fopen('majestic_files/majestic_record.txt','w'); I get the …

php fopen
fwrite if file doesn't exist?

Is it possible to only write a file in PHP if it doesn't exist? $file = fopen("test.txt","w"); echo …

php fopen fwrite fclose