GusNR Posted July 24, 2007 Share Posted July 24, 2007 (edited) hello.. help methe 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 nullHow do string reading contain all character including null's before end of linenote :if open file haw binary i have read blocks and not linesi need WRITE lines FORMAT AS A file TXTexample :* = REPRESENTS NULL CHARACTERx = ABCDE*EFGHIJKLy = filereadline($file)y contain ABCDE whit this lost EFGHIJKL charactersAND 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 July 24, 2007 by GusNR Link to comment Share on other sites More sharing options...
martin Posted July 25, 2007 Share Posted July 25, 2007 hello.. help methe 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 nullHow do string reading contain all character including null's before end of linenote :if open file haw binary i have read blocks and not linesi need WRITE lines FORMAT AS A file TXTexample :* = REPRESENTS NULL CHARACTERx = ABCDE*EFGHIJKLy = filereadline($file)y contain ABCDE whit this lost EFGHIJKL charactersAND 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 viewEasiest 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. Link to comment Share on other sites More sharing options...
randallc Posted July 30, 2007 Share Posted July 30, 2007 Hi, Will file read binaryand stringsplit the variable work? - or needs conversion to string first? not sure? Randall ExcelCOM... AccessCom.. Word2... FileListToArrayNew...SearchMiner... Regexps...SQL...Explorer...Array2D.. _GUIListView...array problem...APITailRW Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now