LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-18-2004, 07:27 AM   #1
paulinimus
Member
 
Registered: Aug 2004
Distribution: SLACKWARE10.0
Posts: 65

Rep: Reputation: 15
Development - file meta format


Hey,
I am writing a little program that creates an ini file for a windows program to be used by Cegega (WineX4) - Linux.
Problem:
I can encode the text file to utf8 but of course the file is created by a program in Linux (c++) so its meta format is Unix. I want to change it to DOS.
Is there a sane way to do this?
It has to be DOS or the windows program running in cedega wont recognise it.
All input appreciated. Dont be shy..

Using Slackware 10.0
 
Old 10-18-2004, 08:33 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,215

Rep: Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100Reputation: 6100
If the file is created by a C++ program it should be possible to add the 0x0d character at the end of a line. There is the utility unix2dos which will convert a text file to the DOS format.
 
Old 10-18-2004, 09:23 AM   #3
paulinimus
Member
 
Registered: Aug 2004
Distribution: SLACKWARE10.0
Posts: 65

Original Poster
Rep: Reputation: 15
Thanks.
That should help.
Will try it later when I finish work...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
gdb "not in executable format: File format not recognized" tcma Programming 9 07-18-2007 06:02 AM
Setting group automatically upon file creation (local web development configuration) jht2k Linux - Newbie 1 02-11-2005 06:05 AM
format/file delete neozero62 Linux - Software 1 05-17-2004 06:39 PM
change file format EECGeek Linux - Newbie 2 01-07-2004 09:47 AM
file format gui10 Linux - General 3 12-06-2001 11:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration