Game Development Community

Saving in cs

by Jorn Theunissen · in Technical Issues · 07/02/2008 (12:30 pm) · 8 replies

Hello,

just started with writing cs code and already (but not supprisingly) I have a problem. When i try to save the file as a .cs file, it says that it is a text file.

I'm making my codes with Microsoft Wordpad.
Example: I save is as: code1.cs, All files, ANSI.

however, de symbool says it's a text file instead of a C# source file.

Any suggetions or help to a new guy?

Thanks in advance!

#1
07/02/2008 (12:42 pm)
In Windows, change your view settings in explorer to show your file extensions. Then remove the .txt.

If you are using TorqueX, then it is a C# file. If you are using another torque engine, then they are TorqueScript files.

Personally, I would recommend using another program than Wordpad for editing any text file.
#2
07/02/2008 (12:49 pm)
Try CodeWeaver (www.torquedev.com/). Its free and pretty nice.

Of course if you have the $40 to spare, Torsion (www.garagegames.com/products/106/) kicks ass.

Edit: Fixed links.
#3
07/02/2008 (1:13 pm)
Never use Wordpad for any scripting language - it adds formating. If you don't want to use an IDE like Codeweaver or Torsion you can use Notepad, just remember that it isn't going to pick up your syntax errors or typos.

I know everyone on the planet gives me a funny look when I say I prefer Notepad to using an IDE.
#4
07/02/2008 (1:36 pm)
Programmers Notepad is pretty useful in some cases and if you don't mind creating a syntax file, you can get syntax highlighting for whatever languages you fancy.

If you're editing script files though, I'd take Chip's advice and look at Torsion. Well worth it for the debugging support.
#5
07/02/2008 (2:29 pm)
To everyone who replied:

Thanks a lot!! you really helped me
#6
07/03/2008 (6:28 am)
@ Steve

Notepad can also add binary garbage to a file. It's less likely, but it can happen. I used to use it for fast edits until I began running into it adding garbage to the file.

I would also recommend Notepad++. I like using it for fast edits or to view some source code without firing up Visual Studio. It's also handy for writing xml, html, etc.
#7
07/03/2008 (6:53 am)
@ Scott
Really? Can't say I've ever come across those problems (yet) but thanks for link and I have now downloaded N++.
Cheers for the heads-up.
#8
07/03/2008 (7:39 am)
Notepad FTW!!!