Jump to content
Sign in to follow this  
franpol38000

FileReadLine (line jump invisible)

Recommended Posts

Hello,

I've a file.txt to save my datas. Sometime these datas are not good, so I've to filter the contents.

Unfortunately, I don't know what to filter because I don't see which things are wrong.

For example, when I want have the line $r of my file.txt , Autoit put this line $r of my file in 3 lines. But when I open directly my file, I see the content in 1 line.

$liner = FileReadLine($file2,$r)

what's the problem  ?

some datas to jump a line are invisibles, how can i see them ? 

Thanks in advance for your help .

Share this post


Link to post
Share on other sites

How about an example of the file, so we can see what you're dealing with? It is most likely a carriage return on the line.


"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites

Hi JLogan3o13,

I don't know how I can join this file here. However, it's a simply file.txt.

When I open the file with bloc-notes or another editor, I get a line like this :

<Hello my name is><I like autoit>

If I try to get this line with autoit, I get 2 lines :

FileReadLine($file,1)=<Hello my name is>

and

FileReadLine($file,2)=<I like autoit>

I know there is an invisible jump of line, but how can I get the content of this file without interpretation ?

If I can see this code, I could do a stringreplace to delete this jump of line (unfortunately it's not @CRLF, not <br>)

Thanks to your help.

Share this post


Link to post
Share on other sites

Not sure what...but it works fine here.

$sFilePath = @ScriptDir & "/test.txt"

 Local $hFileOpen = FileOpen($sFilePath)


$sTest = Filereadline($hFileOpen)
MsgBox(0,"", $sTest)

Test.txtx = <Hello my name is><I like autoit>

capture_21102016_145813.jpg

Edited by l3ill

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  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...