473,387 Members | 1,619 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

File Formats and Programs to read them.

All files have a extension such as .exe, .txt, .html, etc... If I wanted to create a file with a unique extension say .example, and build a program to read it, what programming language would be best to make that program? And Could I make that file extension really hard to crack so that you would have to have the program to open?
Oct 20 '08 #1
3 1770
tlhintoq
3,525 Expert 2GB
There is really nothing to 'crack' about a file extension. It exists just to map a document type to a program.

Think about all those .mp3 files you have on your computer. They can be mapped to open with Apple iTunes, or you can map them to Windows Media Player, to MyWidgetJukeBox if you wanted to write a such a program.

Its the file content and structure that determines if another program is capable of opening it or not. How, what and in what order you write your data. How do you encode your data so only you know what it represents? Are all your records of a fixed length? Are they straight ASCII text, or do you convert everything to a weird 13 byte value that has to be looked up in a table in your application? Do you write your application preferences in the datafile, or in their own file?

As for "what language do I use to write this program..." That is a can of worms of epic scale. Ask the Java guys and they will tell you all the virtues of Java. Ask the C++ guys and they will tell you its the best way to go. There is a reason all these different languages exists: They all have their advantages under certain conditions and they all have their followers.

I suggest you treat the search for a programming language as religious comparrison study, or the search for a wife/husband. Check them all out. Read about all the popular ones. Which one strikes a chord for you? Which one seems like it has a future? Which one seems like you can have a future with it? You are going to be spending lots of sleepless nights alone with your programming projects. You will be talking to your computer like its your best friend, then immediately curse it out. Find a language that you think you can have that kind of relationship with.

Just remember - you wouldn't commit to a long-term relationship with a person just because 10 guys said "Oh yeah man, she's the one for you." - Don't pin your next career in programming on what a dozen people here say. Take their recommendations along with all your own research, throw it in a bag, mix it up and see what comes to the top. Then give each language a test drive for a month. What clicks with you? Getting your feet wet in all of them isn't a bad thing.
Oct 20 '08 #2
RedSon
5,000 Expert 4TB
All files have a extension such as .exe, .txt, .html, etc... If I wanted to create a file with a unique extension say .example, and build a program to read it, what programming language would be best to make that program? And Could I make that file extension really hard to crack so that you would have to have the program to open?
In essence, you are asking the wrong question. If you want to make your files unable to be read by anything other then your program then just encrypt them.
Oct 20 '08 #3
NeoPa
32,556 Expert Mod 16PB
There is really nothing to 'crack' about a file extension. It exists just to map a document type to a program.

...
What clicks with you? Getting your feet wet in all of them isn't a bad thing.
@tlhintoq I think you may have a PM outstanding from 1 October from Frinavale.

Can you please confirm that you have seen it, and possibly respond in one way or the other.

Thank you :)

-NeoPa (Administrator).
Oct 20 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: o'seally | last post by:
solaris/linux admins/rookie_developers that battle with this error are probably all frustrated when it happens. i bet you're also somehow frustrated by this seemingly unsolvable error :-) ...take...
3
by: Tanuki | last post by:
Hi All: I encounter a programming problem recently. I need to read a binary file. I need to translate the binary data into useful information. I have the format at hand, like 1st byte = ID,...
0
by: Lokkju | last post by:
I am pretty much lost here - I am trying to create a managed c++ wrapper for this dll, so that I can use it from c#/vb.net, however, it does not conform to any standard style of coding I have seen....
24
by: Kelly | last post by:
Hey all - I need a little more help. I don't quite know why my text file or form isn't closing. Short version - this program takes data entered into a textbox, user clicks Save button, Save...
68
by: vim | last post by:
hello everybody Plz tell the differance between binary file and ascii file............... Thanks in advance vim
11
by: Gaurav Agarwal | last post by:
Hi All, Am looking for a python script that can convert fileformats to txt format. Am unable to find anything in python. Currently the InfoCon projects looks pretty good to use, but it is return...
29
by: list | last post by:
Hi folks, I am new to Googlegroups. I asked my questions at other forums, since now. I have an important question: I have to check files if they are binary(.bmp, .avi, .jpg) or text(.txt,...
3
by: Paul Moore | last post by:
I'd like to write some scripts to analyze and manipulate my music files. The files themselves are in MP3 and FLAC format (mostly MP3, but FLAC where I ripped original CDs and wanted a lossless...
1
KevinADC
by: KevinADC | last post by:
Note: You may skip to the end of the article if all you want is the perl code. Introduction Many websites have a form or a link you can use to download a file. You click a form button or click...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.