AmigaDos

Anyone used ReadArgs() to parse a file?

Hello any one. :-)

I'm interested in wrting a file parser using AmigaDOS routines. In particular ReadArgs() and any related functions. The file could be read into memory or read in line by line.

The file read in would be similar to an AmigaDOS template and in some places exactly alike. I'd like to be able to pick out key words and act out on them. That is the key words themselves would each represent a different template. Like different commands.

Forums: 

Elf handles

I am using this class in Spotless to handle elf handles. When trying to close the handle after the child has died, there is a crash. If I don't close the handle (comment out the line responsible for closing), there is still a system handle on the file, meaning that it cannot be overwritten or updated. Hence I have to reboot each time I run Spotless on itself.

Solution?

Forums: 

compare two strings in two files

I can read the content of a file using the FRead Function of AmigaDOS. I can use two while cycle to read two file at the same time, but what I would like to do is to compare the content of these two files..

i was looking through sdk and I saw two functions: ParsePatternNoCase() and MatchPatternNoCase(). Have I to use both functions to compare the content of two files?

First ParsePatternNoCase and then MatchPatternNoCase? is it right?

Forums: 

How to AbortPkt() since they removed it?

Hello.

So I have a case where I have a sent packet and need to abort it. But I cannot on OS4 since they removed the function to do so. Good effort.

My use case is that I am waiting for a set of signals and also for a key press on the CLI. As my main code waits in a loop and then processes each signal case. So it would multitask I set up a DOS packet that I send off to read a character which is collected when the signal comes in.

Forums: 

executing external program from a gui/window - better use System or OpenWbObject() [Solved]

I don't know if it is the right place for this topic, in case it is not right please move it in right location of the forum.

What I am trying to achieve is to execute an external program from a gui. When user click the button, it run the program. My work is based from this documentation that I found using Google. It is the amiga wiki page. Here is the link of the page:

http://wiki.amigaos.net/wiki/Executing_External_Programs

Forums: 

Pages

Subscribe to RSS - AmigaDos