Hi,
I have the following apps installed
- Tera Term 4.64
- LogMeTT 2.9.7
- TTLEditor 1.1.5
and started using fileopen and have come to question whether or not these commands work??
Here are the details behind my laptop:
Quote:
------------------
System Information
------------------
Time of this report: 1/20/2010, 19:00:57
Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)
Language: English (Regional Setting: English)
System Manufacturer: LENOVO
System Model: 7665D89
BIOS: Ver 1.00PARTTBLx
Processor: Intel(R) Core(TM)2 Duo CPU T7300 @ 2.00GHz (2 CPUs)
Memory: 2014MB RAM
Page File: 1194MB used, 2711MB available
Windows Dir: C:\WINDOWS
DirectX Version: DirectX 9.0c (4.09.0000.0904)
I went ahead and ran the tera term sample code to keep it simple but it appears the "text.txt" file never is opened and "filereadln" never populates the variable "line".
Here is the code I'm using to test the "fileopen" function:
-
- tmp01 = ''
-
- ; Open a file.
- fileopen fhandle 'test.txt' 0
-
- messagebox fhandle 'USER PROMPT 01'
-
- :loop
-
- ; Read a line from the file.
- filereadln fhandle line
-
- messagebox line 'USER PROMPT 02'
-
- sprintf2 tmp01 'result = %d' result
- messagebox tmp01 'USER PROMPT 03'
-
- if result = 1 goto fclose
-
- ; Display the line.
- messagebox line 'test.txt'
-
- ; Repeat until the end of the file.
- goto loop
-
- :fclose
- ; Close the file.
- fileclose fhandle
-
- end
-
Here is the test.txt file content
-
- It seems
- fileopen will not
- open text files specified
- very strange
-
Has anyone experienced this issue with the versions outlined above?