English
Forum

long Read text string

 

Rainer
Trusch
i want a Textdatei read, The only a String exists, the though very long is. @mid$ and @len$ Edit whom String evident only To to position 32767. How do I get on The characters, The thereafter come?
 
Win XP XProfan10
08/24/08  
 




Jörg
Sellmeyer
which Versin have Thou? The komfortabelste Possibility would well the Upgrade on XProfan10. moreover can You whom Content in a Memory-Variables Edit.
with
CompileMarkSeparation
Char(B#,StartAdresse&,AnzahlBytes&)
>
can You your whole Speicherinhalt read.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/24/08  
 



XProfanversion ex into Signatur - became to the Post too hereon hingewiesen.
 
08/24/08  
 




Rainer
Trusch
I have XProfan 10. The complete String becomes indeed from the File read what about me can it z.B. with the simple "print" over the screen wuseln let.
 
Win XP XProfan10
08/24/08  
 




Jörg
Sellmeyer
means by me functions that here free from problems:
CompileMarkSeparation
Var s$ = MkStr$("Dies ist ein Test! ",32767)
Print Len(s$)
Print Mid$(s$,32767 + 1000,150)
WaitInput<
pre>
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/24/08  
 



certainly has The Textdatei
s or as.
 
08/24/08  
 




Rainer
Trusch
first of all once many Thanks.
I slopes time a Beispieldatei on. it deals itself in the a Plotdatei. The should read and grafisch showing. To to o.g. magic boundary working the too.

52 kB
Hochgeladen:08/24/08
Downloadcounter150
Download
 
Win XP XProfan10
08/24/08  
 




Jörg
Sellmeyer
Poste still simply time whom code, with the You The File einliest and then whom String ausliest. and of course as lauffähiges Minmalbeispiel.
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/24/08  
 




Rainer
Trusch
...but not laugh...

3 kB
Kurzbeschreibung: I hope, its The right..
Hochgeladen:08/24/08
Downloadcounter107
Download
 
Win XP XProfan10
08/24/08  
 




Jörg
Sellmeyer
this is too much! Mach a new code in the You only The File einliest and the String again ausgibst. Perhaps Done itself your trouble then already.
by me functions it namely
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/24/08  
 




Sebastian
Sprenger
Jörg Sellmeyer
by me functions it namely

becomes The Font "Was should because the werden" (see Rainers attachment 12345.txt) with you because To end written? by me not.

How I straight feststelle, can XProfan objectively Strings Edit, The longer as 32767 characters are - the commands Input  can But evident not! Rainer, supplant time these three Lines:
CompileMarkSeparation
Reset #2
i& = 0
Input #2,Zeil
re>
through these:
CompileMarkSeparation
OpenRW #2
i& = 0
Zeile$ = GetChar$(#2, GetFileSize(#2))re>
Greeting, Sebastian
 
Profan² 7.0e, XProfan 9, 11.2a, FreeProfan32
Windows Vista Home Premium 32-Bit, 2.8 Ghz, 4 GB RAM
Windows Me, 1.8 Ghz, 256 MB RAM
08/24/08  
 




Jörg
Sellmeyer
I meant not, that Rainers Program by me functions, separate that Profan by me Strings > 32767 read can.
i know Yes not very, what You with the data employ want, but You can probably effective with SubStr$ The values detect:
CompileMarkSeparation
Cls
ChDir "D:Downloads"
Declare B#,bytes&,s1$
Var size& = FileSize("12345.txt")
Dim B#, Size& + 1
Var hdl& = Assign("12345.txt")
OpenRW hdl&
bytes& = @BlockRead(hdl&, B#, 0, size&)
Close hdl&
Assign hdl&,""
Var s$ = Char$(B#,0,bytes&)
Print bytes&,Len(s$)
Print Mid$(s$,32767,100)
Print Len(s$,"PD"),"-mal PD im Text enthalten"
Print Len(s$,"PU"),"-mal PD im Text enthalten"
WaitInput
hdl& = Assign("12345.txt")
Reset hdl&
Clear bytes&

WhileLoop Len(s$,"PU")

    s1$ = SubStr$(s$,&Loop,"PU"),&Loop
    Print "Gruppe: " + Str$(&Loop)

    WhileLoop Len(s1$,";PD")

        Print SubStr$(s1$,&Loop,";PD"),&Loop
        sleep 100
        Case %mousepressed=2:waitinput

    Wend

    Print "#####################################"
    sleep 10
    Case %mousepressed=2:waitinput

Wend

WaitInput

P.s.: is incidentally very calm with the Font!
 
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
08/24/08  
 




Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

6.519 Views

Untitledvor 0 min.
Ostfriesenjack08/11/21
Georg Teles07/07/21
H.Brill04/15/14
Bert Lehnhoff07/01/11
More...

Themeninformationen



Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie