Forum Home
Press F1
 
Thread ID: 34539 2003-06-16 07:56:00 Reading source from programs obtained from SourceForge PoWa (203) Press F1
Post ID Timestamp Content User
152942 2003-06-16 07:56:00 Hi, I've downloaded the source files for a program located at sourceforge. They were contained in some linux type compression file, so I unzipped them with WinRar.

Now I'm wondering, how do I open these files and take a look at the source. There is like 500+ files too.

I just want to see how they go about making their programs and so on. Go easy on me, I'm new to all this but I will have to be making programs in the future, such as the nature of my degree.
PoWa (203)
152943 2003-06-16 08:07:00 Use notepad

Most of the files within *.tar.gz or *.tgz compression files from sourceforge are php.


Next time indicate the file extension
Merlin (503)
152944 2003-06-16 08:08:00 Hi,

Head back over to the sourceforge Project you downloaded the source from..
sourceforge.net

In the Projects Summary there is a tab named "Programming Language".

You will need to open the project with the programming tool designed for the lauguage used.

HTH
Jess
PeebZ (454)
152945 2003-06-16 08:40:00 > You will need to open the project with the
> programming tool designed for the lauguage used.

Not really, if your just looking. They will just be text files, so notepad etc will work. But checking what language was used would be a good idea.

The files to look at would be extensions like .c, .h, .java, .pl, .py. If there are 500 files in the project, perhaps you should pick something smaller to start with.

BTW, just because its opensource doesn't mean the code will be easy to read.
bmason (508)
152946 2003-06-16 09:39:00 some of the code at SourceForge might be a bit big for a first look at programming.....


have a look and some of the tuts here http://www.gametutorials.com/
robsonde (120)
152947 2003-06-16 10:18:00 Definitely start with something smaller. It's good to look at those programmes, but be warned you will find it very confusing unless you start with the basics. -=JM=- (16)
152948 2003-06-16 12:28:00 Oh the program is coded in 'C'.

sourceforge.net

Text file reading isn't all that helpful because notepad puts it all on one line, even with word wrap off.

Whats the builder program I can d/l to view this source? Location?
PoWa (203)
152949 2003-06-16 13:09:00 If it's all displaying on one line with notepad I'd recommend having a look with Wordpad or Word. This can quite often fix little problems like that.

As for what program to use for the programming. Not sure which ones are the best for C.
-=JM=- (16)
152950 2003-06-16 23:10:00 The problem you are most likely facing is the fact that the code is using a different ASCII table whichs means characters on different OS are not quite the same. You'll need a text editor that can convert DOS/Unix/Mac so that it can be read on your OS. I highly recommend UltraEdit32 which is also a hex editor (good for changing bytes) and can be setup to have your own personalised colour coding options for when working on different programming languages. I wouldn't get by without it.

Even though you'll be viewing the source how much of it do you really understand?

I can tell you don't have much experience, are you wanting to learn?
Kame (312)
152951 2003-06-16 23:14:00 It will be using unix line endings (unix, macs and DOS all use different characters to mark end of lines) .

Wordpad, or word will figure it out, but a propper text editor would be better .

C doesn't have a specific builder . Most people use a text editor .

I use gvim, but Ultraedit would be my recomendation .


BTW, from the description it doesn't sound like it will be an easy programme to read since it probably is rather low level (and not particuarly safe to play with) .
bmason (508)
1 2