English
Forum

How to transfer I write the value in a variable to GetByte in a Textdate?

 

Dirk
Weber
good evening,
i'm since today to over 20 years again into Programming boarded.
After 2-3 hours reading having I directly on my trouble given which me to returns into Programming prompted has. now To my trouble: i want a Binärdatei read and a txt-File write.
I can The File wonderful auslsen with GetByte. can though the value not to that write in a Textdatei in a String transfer.
who is so kind and help me?
cordial Thanks beforehand!
Dirk Weber
 
Dirk Weber
06/15/10  
 




Jörg
Sellmeyer
take off values expect Thou?
If you simply, The through GetByte ermittelten numbers as String abspeichern want reicht.
CompileMarkSeparation
Cls
Declare Wert$,Datei$
Datei$ = "C:\..."
Assign #1,Datei$
OpenRW #1

WhileNot EoF(#1)

    Wert$ = Wert$ + Str$(GetByte(#1))

Wend

Close #1
Print "Fertig mit auslesen...!"
Assign #2,"C:...Datei2.txt"
Rewrite #2
Print #2,Wert$
Close #2
Print "und Ende..."
Windows XP SP2 XProfan X4
... und hier mal was ganz anderes als Profan ...
06/15/10  
 




Sascha
Oliver
Haak
look time in the Help under Textdatei to there standing all written.

Herzlichst Welcome.

Greeting
Sascha
 
06/15/10  
 



Hello Dirk,

How already already of Jörg viewed helps wohlmöglich The function Str$ , Print  GetControlParas (B but too circa so You too
CompileMarkSeparation
print #2,getByte(#1)
>
write can around the values among themselves To Save or
CompileMarkSeparation
print #2,getByte(#1),
>
around the values next to each other To Save or.
CompileMarkSeparation
print #2,getByte(#1);
>
around the values directly next to each other To Save or.
CompileMarkSeparation
print #2,getByte(#1);",";
>
around the values kommagetrennt To Save.

See vlt. too:
CompileMarkSeparation
 
06/15/10  
 




Dirk
Weber
cordial Thanks!
self-evident I will me read better because it really is fun head time again differently To load.
to question of Jörg: It should mere numerische values his.
I try it directly from.
thanks
 
Dirk Weber
06/16/10  
 




Dirk
Weber
it works super!
positively should tappt im dunkeln whom day begin.
thanks
 
Dirk Weber
06/16/10  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

3.455 Views

Untitledvor 0 min.
H.Brill09/26/24
Jochen Roxlau04/14/15
Setharial02/06/13
RICOSCH01/08/13

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