How can I change the default .exe icon in Visual Studio 2012 (C++)?

I was wondering if there was a way to change the default icon that VS2012 makes when I compile my app. Just for thos...

How to create a temporary directory/folder in Java??

Is there a standard and reliable way of creating a temporary directory inside a Java application? There's an entry i...

Getting the default root directory in Java?

I'm making a basic file browser, and want to know how to get the default root directory. I know that java.io.File.li...

Writing a list to a file with Python?

Is this the cleanest way to write a list to a file, since writelines() doesn't insert newline characters? file.writ...

Java FileOutputStream Create File if not exists?

Is there a way to use FileOutputStream in a way that if a file (String filename) does not exist, then it will create...

How to rename a file in .NET??

Using System.IO.File or another .NET class, what is the best way to rename a file? I want to be able to rename file...

Download Remote File to Server with PHP?

I've been looking all over the place for the last two days and trying everything and still can't get anything to wor...

Trying to create a file in Android: open failed: EROFS (Read-only file system)?

This line: final FileOutputStream outputStream = new FileOutputStream(name); results in a FileNotFoundException w...

How do I include a JavaScript file in another JavaScript file??

Is there something in JavaScript similar to @import in CSS that allows you to include a JavaScript file inside anoth...

Open file by its full path in C++?

I want the user to give me the full path where the file exists and not just the file name. How do I open the file th...

Read int values from a text file in C?

I have a text file that contains the following three lines: 12 5 6 4 2 7 9 I can use the fscanf function to read ...

fopen() not working?

I'm want to read a simple string from a text file which is around 3-4 mb but fopen() fails ("can't open file" from d...

Determine if two files store the same content?

How would you write a java function boolean sameContent(Path file1,Path file2)which determines if the two given path...

Reading numbers from a text file into an array in C?

I'm a programming noob so please bear with me. I'm trying to read numbers from a text file into an array. The text ...