6502.org Forum  Projects  Code  Documents  Tools  Forum
It is currently Fri Nov 22, 2024 5:35 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Wed Oct 22, 2008 12:33 am 
Offline

Joined: Fri Jun 27, 2003 8:12 am
Posts: 618
Location: Meadowbrook
Had to redo, new hard drive, reinstall.

Every time I wen tfor opening source, no delimiters, it looked more like a big block of gibberish.

How to get around that:

open the simulator. Make a new file.

Open your old source in Wordpad

Select all, copy and paste over then save in Kowalski. :D

_________________
"My biggest dream in life? Building black plywood Habitrails"


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Oct 22, 2008 3:57 am 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
Or, use a proper text editor that understands both Windows-style and Unix-style line endings, and re-save the file. There also exists conversion tools for this purpose, too.


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Fri Oct 31, 2008 10:44 pm 
Offline

Joined: Sun Aug 24, 2003 7:17 pm
Posts: 111
In Unix there are the standard commands

dos2unix

and

unix2dos


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Tue Nov 11, 2008 6:12 pm 
Offline

Joined: Fri Jun 27, 2003 8:12 am
Posts: 618
Location: Meadowbrook
kc5tja wrote:
Or, use a proper text editor that understands both Windows-style and Unix-style line endings, and re-save the file. There also exists conversion tools for this purpose, too.


Thanks. Didnt know what was going on and tried that one out in a little bit of despair. Still wondering why it zonked all my code like this with fresh reinstalls, though...

_________________
"My biggest dream in life? Building black plywood Habitrails"


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Wed Nov 12, 2008 1:23 am 
Offline

Joined: Sat Jan 04, 2003 10:03 pm
Posts: 1706
The code isn't zonked; it's how it was originally saved. Your files apparently have Unix-style line-endings, where each line of text ends with a single linefeed character ($0A). Modern text editors generally can read both, but usually save in Unix-style files, because it eliminates all the conversion hassle you yourself are now experiencing.

Older-school editors still exist, and retain the MS-DOS and CP/M standard of CR/LF pairs. Apparently, Kowalski's program falls under the "needs serious renovation" category. ;)


Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: Sat Nov 22, 2008 5:25 am 
Offline

Joined: Fri Jun 27, 2003 8:12 am
Posts: 618
Location: Meadowbrook
K. it only got to me because the change that was done was a fresh XP install. I used my saved reinstaller file and also downloaded with the same result. Since my code and the Kowalski program were the same, I figured something screwball happened in the XP install to the new hard drive.

Thanks on the understanding of it, though :)

_________________
"My biggest dream in life? Building black plywood Habitrails"


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron