Sign in to follow this  
Followers 0
GusNR

how use filereadline if line containe null character before CRLF character

3 posts in this topic

#1 ·  Posted (edited)

hello.. help me

the problem is it :

I need read a file TXT for format every line but some line contain nulls characters (0x00)

open file how txt and read this with filereadline, but the line reading only contain the string before null

How do string reading contain all character including null's before end of line

note :if open file haw binary i have read blocks and not lines

i need WRITE lines FORMAT AS A file TXT

example :

* = REPRESENTS NULL CHARACTER

x = ABCDE*EFGHIJKL

y = filereadline($file)

y contain ABCDE

whit this lost EFGHIJKL characters

AND I NEED THE LINE COMPLET......

CAN HELP ME

excuseme for my bas english :)

PD: if use mode binary how controled for make lines Txt??????????????

and other question..... AUTOIT have pointers or address of vars with C languaje or Autohotkey?

can use Vars name how pointers to read values, if yes can use this for read characters after end of string view

Edited by GusNR

Share this post


Link to post
Share on other sites



hello.. help me

the problem is it :

I need read a file TXT for format every line but some line contain nulls characters (0x00)

open file how txt and read this with filereadline, but the line reading only contain the string before null

How do string reading contain all character including null's before end of line

note :if open file haw binary i have read blocks and not lines

i need WRITE lines FORMAT AS A file TXT

example :

* = REPRESENTS NULL CHARACTER

x = ABCDE*EFGHIJKL

y = filereadline($file)

y contain ABCDE

whit this lost EFGHIJKL characters

AND I NEED THE LINE COMPLET......

CAN HELP ME

excuseme for my bas english :)

PD: if use mode binary how controled for make lines Txt??????????????

and other question..... AUTOIT have pointers or address of vars with C languaje or Autohotkey?

can use Vars name how pointers to read values, if yes can use this for read characters after end of string view

Easiest way is to open the file in notepad. Notepad will convert NULLs to spaces automatically, then save the file as some other name. Then read it.

Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0