| Coding Forum Collaborate, receive help, or discuss coding related issues. |
![]() | | Tweet | |
| | #1 | ||
![]() | Need Help to Retrieve a String Using ADE or ELCollections I'm not familiar with ADE and ELCollections so I ask an Help to You. I've a txt file with only 2 lines of string: 1st line "my date of birth" 2nd line "16081973" This file is in the directory C:/temp/date of birth with the name "DATEofBirth.txt" How can I retrieve the 2 strings in a code/indicator using ADE or ELCollections and Plot them as a string in the chart ??? The only way that I doesn't find is the correct way to get the string in the code, then I know very well the way to plot it in the chart. Thanks to anyone who gives me an help CrazyNasdaq | ||
| |
|
| | #2 | ||
![]() | Re: Need Help to Retrieve a String Using ADE or ELCollections if I tell you how, my words will pretty well be a repeat of the manual. http://www.traderslaboratory.com/for...uage-5934.html
__________________ Only an idiot would reply to a stupid post | ||
| |
|
| | #3 | ||
![]() | Re: Need Help to Retrieve a String Using ADE or ELCollections Quote:
I've tried to code myself, but with no result. Here is the actual situation and the code that I've tried. The string to retrieve is more simple than the first one, only a long number in 1 row and 1 column: 4409929648741489700 always in a directory with a txt file. I've tried the string "ELC.PathExists(FileN ame) " and it gives me back the proof of the existance of the txt file, but the complete code gives me back nothing........ [code] ************************* *** Inputs: FileName("c temp\Autoriz ation_code.txt"); Vars: DataMap(ListN.New), code(0), x(0); if CurrentBar > 1 then begin if ELC.PathExists(FileName) then begin value1 = ListN.ReadFile(DataMap, FileName); // Check map count in case file was empty if ListN.Count(DataMap) > 1 then begin code = ListN.Get(DataMap,1); end; value3 = ListN.Get(code, 1); X = text_new(d,t,c[1],""); If lastbaronchart then Text_setstring(x, numtostr(value3,0)); end else print ("File does not exist"); end; ************************* ******* I don't know how to get that code. Where I'm wrong ??? Thanks | ||
| |
|
| | #4 | ||
| Re: Need Help to Retrieve a String Using ADE or ELCollections Code: Inputs: FileName ( "C:\ADE\Data\My_Brain.txt" );// File location
Vars: DataMap(ListN.New) ,// Create List of numeric values named "Datamap"
Ergebnis (0) ,// Variable for the content || result
Counter(0) ;// just to count up
Counter = Counter+1 ;// Barcounter one up (for debugg only)
if CurrentBar > 1 then begin // all bars in chart but the current
if ELC.PathExists(FileName) then begin // in case file is found
value1 = ListN.ReadFile(DataMap, FileName);// read file into list "DataMap"
Ergebnis = ListN.Get(DataMap,1) ;// pick first data in list and make it Ergebnis
Print (Counter, " Gefunden = ",Ergebnis);// print it for debugging only
end //
else //
print ( Counter , "Kein File vorhanden") ;// File not found
end ;//
value1 = ListN.Clear(DataMap) ;// Clear List and free memory Code: value3 = ListN.Get(code, 1); ![]() Lobo | |||
| |
|
![]() |
| Thread Tools | |
| Display Modes | Help Others By Rating This Thread |
| |
| ∧ Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Elcollections.dll Sources Needed | radekj | Coding Forum | 6 | 10-22-2011 09:04 AM |
| ELCollections.dll | giladbi | Coding Forum | 9 | 04-14-2011 01:23 AM |