Naima - Illustrator, or a vector program is usually easier for that. Illustrator has many ways to achieve good crisp lines of various styles.
That being said, many people spend most of their time in Photoshop or GIMP. If that is the case for you then the best way to do that is with the pen tool in PS.
You would create your line or "path" with the pen tool. Then select a path and go to the "Paths" tab, down near the layers tab. Select a PS brush that has the settings you want, for example a dotted line. Then right click on the path in the paths tab and select stroke path or sub-path. It will leave you with a line such as you have selected.
Here is a quick screenshot process.
Click image for larger version. 

Name:	Clipboard01.jpg 
Views:	173 
Size:	202.1 KB 
ID:	66414 Click image for larger version. 

Name:	Clipboard02.jpg 
Views:	132 
Size:	198.8 KB 
ID:	66415 Click image for larger version. 

Name:	Clipboard03.jpg 
Views:	113 
Size:	284.9 KB 
ID:	66416
Click image for larger version. 

Name:	Clipboard05.jpg 
Views:	124 
Size:	292.0 KB 
ID:	66417 Click image for larger version. 

Name:	Clipboard06.jpg 
Views:	156 
Size:	303.1 KB 
ID:	66418
The biggest thing then is to find or make the sorts of brushes that you would want to use.