Discussion:
Nokia 9500 programming Question. TXT files
(too old to reply)
LanceW
2005-12-16 15:16:24 UTC
Permalink
Hi all,

Just a post to ask two questions:

1)Is this the right place to ask questions in regard to writing OPL on
a Nokia 9500?
2)If so, is someone able to spare sometime helping a newbie with a
small piece of OPL I have started writing.
(http://sourceforge.net/projects/sreader)

I have used EventCore as a starting point, everything is getting
there...except handling the file I/O. Basically, I want read in a text
(or eventually a HTML) file and display it.

Any folks with lots of patience willing to assist?

Lance
JumpJack
2006-01-04 13:18:25 UTC
Permalink
Not the best place for asking info about opl programming.
Take a look at Arjen's OPL forum at
http://www.freeboards.net/index.php?mforum=opldevelopment

I wrote my own little procedure for reading text files:

proc ReadLine$(FileHandle%)
local f%,x%,addr&,a&,b$(255)
addr&=addr(a&)
read%=ioread(FileHandle%,addr&,1)
x%=1
while a&<>10 and x%>255 and read%<>-36
b$=b$+chr$(a&)
x%=x%+1
read%=ioread(FileHandle%,addr&,1)
endwh
return b$
endp

I just typed it, not pasted, so I hope there are no errors....

File must be already open before calling this proc.
LanceW
2006-01-05 14:48:23 UTC
Permalink
CHeers for that,
SHall try it this evening.

Loading...