problems with reading / ReadLine and great textfiles

Hello

I am trying to write a very simple little application that removes wrinkles in a text file. My approach is:

fHdle = OpenFile (fName, VAL_READ_ONLY, VAL_OPEN_AS_IS, VAL_ASCII);

fOutHdle = OpenFile (fOutName, VAL_WRITE_ONLY, VAL_TRUNCATE, VAL_ASCII);

While (ReadLine (fHdle, buf,-1)! =-2) {}
If (FindPattern (buf, 0, -1, "SequenceID", 1, 0) ==-1)
WriteLine (fOutHdle, buf,-1);
}

CloseFile(f) (fHdle);

CloseFile(f) (fOutHdle);

This works perfectly well when the files are small, say I copied the lines first ~ 1000 of my original text into a new file, when I try with the big original file (~ 10 MB / 200,000 lines), it is not, the buffer is empty, 0 bytes read but no FmtIOErr. Any help is very appreciated!

Thanks in advance the tons

Just a simple suggestion: I'll try to add an error checking and see if an error during playback. Is something like this:

While ((erreur = ReadLine (fHdle, buf,-1))! =-2) {}

If (error ==-1) {}

error = GetFmtIOError ();

Messagepopup ("error", GetFmtIOErrorString (error));

}

}

Tags: NI Software

Similar Questions

  • Problems with wifi, bluetooth and gps in my iphone after updating iOS 6

    After that the last iOS 9.3 update my iphone 6 has problems with wifi, bluetooth and gps. Now, my wifi connection is slower and falls easily on a short distance. My bluetooth does the same. But the biggest problem is the GPS on my phone. I tried Island:

    -By doing a reset network

    -Do a reset total and restore my phone

    -To restart my phone twice.

    -Audit and third-party applications unnistalling

    Nothing works. I was in the apple store where they checked my phone and they say everything is ok with the phone. I'm not crazy, and I know when something does not work correctly. Also, I think it's iOS 9.3 update a reaponsible for my phone issues.

    Please fix bugs fast.

    Having the same exact problems since the upgrade. In addition, battery drains very quickly now, and sometimes the phone becomes very hot. It took to the Genius Bar and they told me everything was normal in the diagnostic tests. Restored, restarting, etc., and always the same problems. GPS locates me, but then don't follow my movement at all and told to go outside as the gps is not detected even if I am outside. Bluetooth connection to the car and watch grave intermittently. Signal WiFi is greatly reduced and falls easily.

  • Problem with read/write satellite U400 - 12 p PSU40E DVD on LG GSA-U10N

    Hello again,

    Another serious problem is the LG GSA-U10N DVD combo drive that comes with mine U400. For some reason he has serious problems with reading and writing to DVD. Doesn't depend on whether the media is expensive or cheap. It seems to read and write all the CD very well, however.

    I would like to avoid leaving service point (can take up to 3 weeks or more), because I need this laptop all the time.

    Is there anything we can do about it?

    My system - Vista Home Premium 32 bit has been restored to factory default and then fully update the site of microsoft, outside pilots. In addition, no other movements driver update has been made. It's just that you want it to be.

    Greetings

    > Doesn't depend on whether the media is expensive or cheap.
    Not really

    My notebooks drive can handle a lot of different CD and DVD from different manufacturers, there are cheaper and more expensive DVDs.

    I had a good experience with TDK DVD-R discs. In most cases, the burning procedure could be completed successfully
    But I had some problems with the other DVD writing.

    I think the whole issue is compatibility between the laser lens and DVD-surface and that's why I recommend you several DVDs from different manufacturers.

    Goodbye & good luck

  • HP 15 laptop: problem with the touchpad and the key "stuck."

    Hello!
     
    Last weekend, I have an irritating problem with my HP 15 laptop. Bought two years ago and upgrades to Windows 10 a year ago.
     
    First of all, my touchpad started to not work properly. It "freezes" and I can't use it until I click the ESC key, but it doesn't last and "freezes" again a few seconds later. Then, everytime I open a window where there is a text box (Start menu, edge browser, Control Panel, etc.), the number 5 is entered automatically and permanently, as if the button 5 has been blocked. I did a quick check and button 5 do not seem physically stuck.
     
    Yesterday, I restored the system to the factory settings, so I'm back to 8.1 for Windows and then upgraded to Windows 10. Everything seems to work fine, but this morning, the problem was back. Is there something I can do? What is the problem caused by Windows 10 or the computer? Should I restore it to Windows 8.1? Everything worked great til last weekend, I don't know what that was.
     
    Thank you in advance for your help!

    Welcome to the HP support community @gouch3.

    I understand that you have a problem with the keyboard and the touchpad on your laptop from HP 15.

    Have you tried to use a keyboard external and mouse at all?

    Have you tried to go to Safe Mode to see if the problems persist in there?

    Have you tried to perform a material or forced reset Reset?

    Did you do a test of material?

    Have you updated your drivers?

    gouch3 wrote:

    ... Is there something I can do? What is the problem caused by Windows 10 or the computer? Should I restore it to Windows 8.1? Everything worked great til last weekend, I don't know what that was.

    It could be a driver problem to be able to look at that for you, I need your model number. I wish I could give you an answer or not, but at this point without the troubleshooting results and the model number, it is difficult for me to say.

    I can say that if everything works in point 8.1 of Windows without problem, the driver TROUBLESHOOTING is a great place to start. Please try to follow these steps for the keyboard and the touchpad of troubleshooting:

    • Beginning
    • Search for Device Manager
    • Search results, open Device Manager.
    • Click on display
    • Show hidden devices.
    • Click the arrow next to keyboards.
    • Right click on the name of the keyboard device.
    • Select uninstall.
    • Continue deleting the names of devices in the category keyboards until the feature of all the names have been uninstalled.
    • Restart the laptop twice.

    Touchpad:

    • Type of research, "Device Manager."
    • Click on Device Manager,
    • Expand mice and other pointing devices.
    • Right click on the TouchPad,
    • Click on uninstall.
    • Restart the computer laptop twice,
    • Reinstall the TouchPad card.

    I found a document of troubleshooting for you to try also called Portable keyboard troubleshooting. Please be sure to follow the steps described in this document.

    The best document I have for TouchPad problems is the use and troubleshooting of the TouchPad and ClickPad document. 

    Here is a link to the HP Support Assistant, if you need it. Just download and run the application and it will help with the software and drivers that need to put up-to-date.

    This is a great question other clients may also be questioned. When we came to a resolution, please share what has worked for you with others by marking this post as an acceptable Solution. If you want to show appreciation for my efforts today, please take a second to click the Thumbs Up button below.

    If you need assistance, I would be more than happy to continue to help you. Please re-post with the results of the resolution of the problems. Could you please also provide your model number (How can I find my model number or product number?)

    Thank you!

  • Problems with Windows Update and load XP SP3

    I had a problem with my system and had to replace my HARD drive and reload XP and all my applications and data.  Now, I installed SP2 and try to install SP3. Windows Update does not work (get the 080244019 error code x) and when I try to install the SP3 files from the Microsoft site, it'll run about halfway through and then stop and hang, displaying the message "Finish Installation" with bar at halfway of the progression.  I tried the MSRT and FixIt nothing helps.  I checked services.msc to see all the required services are enabled or started.  I read that some malware will be stop some services without notice.

    After a few attempts to load the file SP3 failed, check Add/Remove programs in Control Panel Windows XP Service Pack lists 3 but no file size or to update the date information as with other programs.  My browser is IE8 and I was doing some Hot fix for Windows XP downloads, this adventure started about 3 weeks ago, but no other automatic update downloads.  I use the following McAfee provided by my ISP for protection AV and firewall with regular full scans.  Scan today revealed there is apparently a single trojan file that cannot be deleted, but there were no further details.  My system is also fully functional; I seem to get the updates for McAfee and other applications OK but not SP3.  I received or otherwise installed following updates or Hot Fix for XP downloads in the past 3 weeks:

    KB954550-v5

    KB932823-v3

    KB915800 v4

    KB884020

    KB926239

    KB2618444 (Windows IE8 security update)

    I found an answer on another forum on editing the registry for the "/ Edit EDWARD CSDVersion value ' but have not yet tried waiting for any response to this request.  I'd like some useful suggestions.  Thank you and happy new year!

    Thanks for the quick response.  I did some checking on my system, I have XP Home Edition ships with the system bought in July 2007.  Add/Remove Programs shows that the aborted install XP SP3 and IE8 installation; I tried to load the SP2 file but it doesn't show here as an addition, so it may have been part of the original XP CD and I just crush.  Even for IE7 so I am not able to drop back to all recommend you.  I will try your solution later today and post my results. I saved SP2, SP3 and IE8 in my office and a flash player to reload later according to your instructions.  Stay tuned.

    It would be unusual for a CD of Windows XP (official) to have integrated Internet Explorer 7.

  • Hello I have problem with my site, and mozilla. Google chrome, safari, explorer, opera work ok. Mozilla Heve problem with images?

    Hello I have problem with my site, and mozilla. Google chrome, safari, explorer, opera work ok. I have Sobipro for both the company and the logos and images without work!
    When I try to open the url is this:http://www.athens-dayandnight.gr/images/sobipro/entries/288/587_img.jpg

    whith mozilla is the following: /images/sobipro/entries\288\587_img.jpg when ichange it------with this / work.

    any idea?

    Thank you

    Hello, the URLS that contain-in their path are not valid. Firefox is less tolerant to errors in this respect than other browsers.
    Correct the path to http://www.athens-dayandnight.gr/images/sobipro/entries/288/587_img.jpg in the source code of this site or if you don't control the contact of the site their webadmin to do...

  • Satellite Pro C650D - problems with the audio and game controllers

    Hello

    I recently had problems with my microphone and speakers/headphones and game controllers.
    Sometimes the microphone stops working when on Skype, for example, but most of the time works fine, once again, when I restart the pc.

    Stakeholders sometimes still work when I connect headset.
    Some of the sounds are still coming through the speakers while some coming through the headphones.

    I have a usb game controller which also did not work everything properly.
    If I assign buttons in the program that they do not work in the game.

    All these devices are in Device Manager in a group that makes me think it's sort of annoying update doubtful that messes with them.

    Any body have similar problems or know what to do better?

    See you soon
    Laurin

    Hello

    Can you please send some details on the laptop model and the system you are using?

    With regard to the issue of sound/mic:
    > The microphone sometimes stops working when on Skype, for example, but most of the time works fine, once again, when I restart the pc.

    Are you talking about internal microphone or external? This only happens using Skype?
    In your case I would test the microphone using different applications to make sure that is not a Skype related issue.

    > Yet sometimes the speakers work when I connect headset.
    I recommend this thread:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=65295

    The user has had a similar problem, but this phenomenon was linked to the Realtek HD Audio Manager settings.
    She wrote:
    + In the upper right corner, there is a small yellow folder called "Connector settings" in my version. +
    + There, finally I could re-enable the setting "enable popup dialog box, when the unit is plugged. +

    + So now when I plug an external speaker or headphones, it appears, and I select the option "helmet" (instead of "line-in"), and then the sound only through the headphones/ext.speaker.+

    Regarding the game controller:
    > I have a usb game controller which also did not work everything properly.
    > If I attribute buttons in the program, they do not work in the game.
    I put t think its problem of laptop in my opinion, you must make sure that the controller is compatible with the games you play and also recommended to check some info provided by the manufacturer of the game controller.

  • How can I return to 6.3 4.0 I have never had a problem with 3.6 and now 4.0 crashes all the time tell me how to go back

    How can I return to 4.0 3.6 I've never had a problem with 3.6 and now 4.0 crashes all the time tell me how to go back

    Downgrade to Firefox 3.6 first of all uninstall Firefox 4, but do not select the option 'remove my Firefox personal data '. If you select this option, it will delete your bookmarks, passwords and other user data.

    Then you can install the latest version of Firefox 3.6 available to http://www.mozilla.com/en-US/firefox/all-older.html - it will automatically use your favorite courses, passwords etc.

    I recommend, to avoid possible problems with decommissioning, accessing your profile folder and delete the following files if they exist - extensions.cache, extensions.rdf, extensions.ini, extensions.sqlite and localstore.rdf. Delete these files will force Firefox to rebuild the list of installed extensions, check their compatibility and cancel the toolbar customizations.

    For more information on how to find your profile folder, see https://support.mozilla.com/kb/Profiles

  • Problem with the report and the system of axis 2d

    Hi, I'm trying to write a script with tiara, who wrote a 2d axis system in the report but I'm having a lot of problems with it.

    What I'm trying to do, is make 3 or more system axis 2d in the report, each displaying a part of the data of 2 channels (x = ch0, ch1 = y).

    With only 1 graphic I get what I want, but when I try to add the 2nd or the 3rd, they show without my defined x-scale and with the offset x different from the first chart.

    I tried everything, but I could not remedy

    I added as attachments the .csv file that I use to ch0 and ch1 and 2 screen shoots "what I get" (about the problem with the script) and "what I hope to get" (done manually, is what I'm trying to get the report)

    Any help will be appreciated, thanks in advance

    Ierman

    I'll post my code here:

    Dim Xscale, Yscale
    XScale = Array (0,25,0,5,49)
    Yscale = Array(-0.2,0.2,-0.2,10,4)
     
    Call PicDelete()
    Call GraphObjNew ("2D-Axis", "2DAxis1")
    Call GRAPHObjOpen ("2DAxis1")
    D2AxisTop = 1

    D2AxisBottom = 70
    D2AxisLeft = 1
    D2AxisRight = 1
    Call GRAPHObjOpen ("2DYAxis1_1")
    D2AxisyScaleType = "manual".
    D2AXISYBEGIN = Yscale (0)
    D2AXISYEND = Yscale (1)
    D2AXISYORIGIN = Yscale (2)
    D2AXISYTICK = Yscale (3)
    D2AXISYMINITICK = Yscale (4)
    Call GRAPHObjClose ("2DYAxis1_1")
    Call GRAPHObjOpen ("2DXAxis1_1")
    D2AxisxScaleType = "manual".
    D2AXISXBEGIN = Xscale (0)
    D2AXISXEND = Xscale (1)
    D2AXISXORIGIN = Xscale (2)
    D2AXISXTICK = Xscale (3)
    D2AXISXMINITICK = Xscale (4)
    D2AxisXTxt = ""

    D2AxisXColor = 'black '.

    D2AxisXTickAuto = 1
    D2MTickLineWidth (1) = 0.1
    D2MTickLineType (1) = "solid".
    D2AxisXTickSize = 60
    D2AxisXTxtAutoCo = 0
    D2MTickColor = "red".
    Call GRAPHObjClose ("2DXAxis1_1")
    Call GraphObjNew("2D-Curve","New_Curve")

    Call GraphObjOpen ("New_Curve")

    D2CCHNX = "[1] / [1]" "

    D2CCHNY = "[1] / [2]" "

    D2CurveColor = "red".
    Call GraphObjClose ("New_Curve")
    Call GRAPHObjClose ("2DAxis1")

    Dim Xscale1, Yscale1
    Xscale1 = Array (25,50,0,5,49)
    Yscale1 = Array(-0.2,0.2,-0.2,10,4)
    Call GraphObjNew ("2D-Axis", "grafic")
    Call GRAPHObjOpen ("grafic")
    D2AxisTop = 40

    D2AxisBottom = 37
    D2AxisLeft = 1
    D2AxisRight = 1
    Call GRAPHObjOpen ("2DYAxis1_2")
    D2AxisyScaleType = "manual".
    D2AXISYBEGIN = Yscale1 (0)
    D2AXISYEND = Yscale1 (1)
    D2AXISYORIGIN = Yscale1 (2)
    D2AXISYTICK = Yscale1 (3)
    D2AXISYMINITICK = Yscale1 (4)
    D2AxisYTxt = "" ' testo asse label y
    Call GRAPHObjClose ("2DYAxis1_2")
    Call GRAPHObjOpen ("2DXAxis1_2")
    D2AxisxScaleType = "manual".
    D2AXISXBEGIN = Xscale1 (0)
    D2AXISXEND = Xscale1 (1)
    D2AXISXORIGIN = Xscale1 (2)
    D2AXISXTICK = Xscale1 (3)
    D2AXISXMINITICK = Xscale1 (4)
    D2AxisXTxt = «»

    D2AxisXColor = 'black '.

    D2AxisXTickAuto = 1
    D2MTickLineWidth (1) = 0.1
    D2MTickLineType (1) = "solid".
    D2AxisXTickSize = 60
    D2AxisXTxtAutoCo = 0
    D2MTickColor = "red".
    Call GRAPHObjClose ("2DXAxis1_2")
    Call GraphObjNew("2D-Curve","New_Curve1")

    Call GraphObjOpen ("New_Curve1")

    D2CCHNX = "[1] / [1]" "

    D2CCHNY = "[1] / [2]" "

    D2CurveColor = "red".
    Call GraphObjClose ("New_Curve1")
    Call GRAPHObjClose ("grafic")

    Hi lerman,.

    Here is an edited version of your code that works on my computer.  A problem that I know that I fixed it was that your presentation of the STATE was in the name-oriented mode but you use the variables based on the number to assign it X and Y channels.  The execution of these commands in a loop FOR makes it much easier to debug the code and to avoid any annoyance at first.

    Brad Turpin
    Tiara Product Support Engineer

    National Instruments

  • Problems with the date and time - have to reset the date & time on reboot

    original title: problems with the date and time

    Whenever I turn on my computer (Windows XP 2002) I click on F2.  Then I re - set the date and time it occurred in January 2006 1 h every time I have turn off the computer.  Can someone tell me what I need to do?

    You need to replace the battery in time clock (RTC) real of your computer.  It can also be called the CMOS or BIOS battery.

    Many computers, this battery is an inexpensive CR2032 button available in almost every pharmacy corner.  There are, however, some computers (especially laptops) that require a different (and probably more expensive) battery.

    Whatever the expense, almost all of these batteries are easy to replace.

    To get help, post back with the brand and model of your computer.

  • I've had dramas with my photos because I got my new iphone 4s in saying that there is a problem with the properties and I can't change the format of images

    Hello

    I've had dramas with my photos because I got my new iphone 4s in saying that there is a problem with the properties and I can't change the format of images (ie the rotating EGTC)

    Now, I see the image preview and it disappears to the flower, so I did not see one of my photos

    Some would like TO help on this im so not good with this kind of thing.

    Appreciate it in advance

    Let

    Hello

    • When you change the format of images of?
    • What is Windows Explorer or Itunes?

    Try the TV activation

    Enabled and disable the Option 'show window previews (thumbnails) '.

    a. right click on the taskbar.

    b. Select Properties.

    c. check show window previews (thumbnails) "Option. .

  • I have a problem with file compression and then not be able to extract their share at a later date

    original title: file compression

    I am running Vista Home Premium on my laptop. I have problems with file compression and then not be able to extract their share at a later date. For example, I sent a file compressed to my instructor and she pointed out that she had a .zipx extension and the fact that she was unable to extract the files of ranking. Can someone help me with this problem?

    Hello

    1. do you have a third party compression/extraction of software installed on your machine?
    2. do you get an error message when you try to extract the files?
    3. is the relevant question for the particular file type?
    4. don't you make changes to your computer before the problem?

    Follow the steps and check if they help.

    Step 1:

    Open zip files is to open the folder and drag the content to another folder.

    See article:
    Compress and uncompress files (zip files)

    Step 2:

    If you have a third party software to Compress/decompress, I'd Uninstall it employs the way Windows compression and decompression of files/folders and see if they help.

  • + 011 phone calls indicating that I have serious problems with my computer and that they provide a service of Microsoft solve problems

    original title: + 011 phone calls

    I just got a phone call from + 011 indicating that I have serious problems with my computer and they provide a Microsoft service problems. It sounds like a crowded call center and they can tell me their name and they tried to set up a remote entry on my computer. That's when I hung up. Is - this legitimate because what it really looked like a trick.

    Not legitimate... do not answer the call... Mike Hall MVP - Windows Expert: consumer http://msmvps.com/blogs/mikehall/

  • Problems with my mouse, and have not been able to find a solution to the research on various forums.

    Original title: mouse problems

    I have problems with my mouse and have not been able to find a solution to the research on various forums. Here are the symptoms:

    1. you must click several times to get the menus to open. Sometimes they are not just and sometimes they open with a single click flash but do not stick until I clicked several times.

    2 several times the menu drop down and seem to become transparent (not in looks) because when I click on something on the menu, he actually selects everything that is behind the menu drop down. For example, if I'm in powerpoint and you select an item in edit mode, it might work and here again he can just select the slideview behind the menu and expand. Or well, if I'm on a Web site, such as Facebook, and I chose to close the session, rather than enable the disconnection of the key, he chooses some ad is behind the part of the menu and redirects the page of this Web site.

    3. when I try to select a Word, words or sections as paragraphs, it performs several different things: continually select as soon as I let go of the mouse button, the jumps of color selection in another part of the document, or deselects the part of the text before I even let go of the mouse button.

    Here is what I tried:

    1. I had originally a usb wireless mouse. I changed the batteries and then got a new. Now I use a wired mouse.

    2 make sure all updates for Windows and Office 2010 are updated.

    3 has tried to update the drivers mouse, says that it is up-to-date. He restored, did not work. Uninstalled and restarted.

    4 Ran Windows Security Essential and Malwarebytes - found nothing.

    5. ensure that all the Toshiba updates were up-to-date.

    I don't know how the word this issue properly in order to find information about it. Everything I typed in search engines brings me other problems unrelated to this one.

    I am running W7 64 x Home Premium SP1, SP2 MS 2010 with a mouse Dell; Toshiba Satellite C655

    Well I have stumbled on the fix... looks like there was a problem with the HID-compliant mouse. The convenience store hardware detected and solved the problem. Everything seems to work properly again.

  • After the last updates of windows have problems with start up and now drivers

    Hello

    After the last updates of windows have problems with start up and now drivers. I get an error code 21 when I try to install the drivers AMD apparently missing.

    May 14, last night I had several (automatically) downloaded windows update

    Today, I was unable to boot my computer with Windows - tried the disk check, start checks etc, and eventually had to use System Restore (for help before the critical update to restore).

    Perfection, everything works, but knowing that windows will attempt to redo an automatic update, tried to check online - no one seemed to have a problem and (naivly) thinking I could always do another restore of the system, I rebooted again.

    Same thing worse. Could not do a sys restore either just before restarting or last night. Chose a date earlier (last week) but then lost the USB drivers and pilots display. Downloaded updated but refuses to let my AMD driver install Windows I have a very unpleasant screen... and I must now stop the installation of this update "critical."

    Would appreciate advice how do my installed display driver or whether anyone else has problems following this update

    Thank you

    Hi Jane,

    You have a disk to install Windows 7 with you?

    I suggest you to check the event viewer for error details report.

    Open event viewer.

    http://Windows.Microsoft.com/en-us/Windows7/open-Event-Viewer

Maybe you are looking for

  • Performance of YouTube on some videos

    So I came across a strange bug that I can reproduce on my MBP 2014 (Iris Pro) and my iMac end 2015 (with GPU), some videos on YouTube compleltey kill the performance of tabs. Stutters and takes about 4 seconds to go full screen, dropping about 100 im

  • I greeted yellow bar on site to allow pop ups, how I turn it back on

    I have authorized yellow bar of the pop-up blocking to allow. now I want yellow rear bar to turn it off a site

  • Where are the saved files that someone sends you through Skype Windows8

    Hello I just bought a new computer that has windows 8 installed above and I must say that I was shocked when I realized that the system is like that running a pad that is so bad, if you want to actually work with the computer. Then, I installed Skype

  • The volume is too low on my Satellite L20

    First of all sorry for my bad English... I just bought a Satellite L20 and I am very disappointed by the volume of the speakers... I read several other post with people complaining of the same issue.It is almost impossible to watch a movie being able

  • NB100 - Surface is very prone to scratches

    Hello I noticed the NB100 surface is quite prone to scratches and Ive managed to gather some light of myself that show when the light reflects against it Are there methods/tips/disguses to hide this? Thank youx