What is the correct way of creating files?

Hello,

I wanted to know what is the correct way of creating header file and C files.

When I was programming in Amtel Studio I had the option of creating .h files for my function prototypes and .c files for my functions which were executed by my main.c file.

However there is no option to create a header file or a c file, there's only the option of creating a new sketch. Do I just write a header file as another sketch and plop it into my main sketch directory?

Hello,

cr34t0r:
However there is no option to create a header file or a c file...

Start the Arduino IDE. Load your sketch. On the right side of the IDE window, below the Serial Monitor button is a button with a triangle pointing down. Click that button. Click New Tab. Enter a file name like "MyStuff.h" then press Enter or click OK. Repeat that process for each new source file you want to add to the sketch.

You sir, are awesome. Thanks!

You are welcome.